title: ElasticSearch - Get only matching nested objects with All Top level fields in search response
body: <p>let say I have following Document:</p>
  
  <pre><code>{
      id: 1,
      name: "xyz",
      users: [
          {
              name: 'abc',
              surname: 'def'
          },
          {
              name: 'xyz',
              surname: 'wef'
          },
          {
              name: 'defg',
              surname: 'pqr'
          }
      ]
  }
  </code></pre>
  
  <p>I want to Get only matching nested objects with All Top level fields in search response.
  I mean If I search/filter for users with name 'abc', I want below response</p>
  
  <pre><code>{
      id: 1,
      name: "xyz",
      users: [
          {
              name: 'abc',
              surname: 'def'
          }
      ]
  }
  </code></pre>
  
  <p>How can I do that?</p>
  
  <p>Reference : <a href="https://stackoverflow.com/questions/31719968/select-matching-objects-from-array-in-elasticsearch">select matching objects from array in elasticsearch</a></p>