title: Can anyone help me to query from elastic search
body: <p>I want to access the flights array as in the image and get records 10 by 10. I tried different ways by mapping the flights array.
  Here is what i tried in postman</p>
  <pre><code> PUT http://12.234.17.134:9200/index-flights
      {
        &quot;mappings&quot;: {
          &quot;properties&quot;: {
            &quot;flights&quot;: {
              &quot;type&quot;: &quot;nested&quot; 
            }
          }
        }
      }
      GET http://12.234.17.134:9200/index-flights/_search
      { 
      &quot;query&quot;: {
          &quot;match&quot;: {
            &quot;result.id&quot;: &quot;2erfc096-3db0-4817-88fc-69db286e95b8&quot;
          },
          &quot;query&quot;: {
         &quot;nested&quot;: {
            &quot;path&quot;: &quot;flights&quot;
         }
          }
        }
       }
  </code></pre>
  <p>Image of the structure of my data</p>
  <p><a href="https://i.stack.imgur.com/K378p.png" rel="nofollow noreferrer">https://i.stack.imgur.com/K378p.png</a></p>