# Search nested field with filtering

**URL:** https://discuss.elastic.co/t/search-nested-field-with-filtering/228831
**Category:** Elasticsearch
**Created:** [April 20, 2020, 10:01am UTC](https://discuss.elastic.co/t/search-nested-field-with-filtering/228831 "2020-04-20T10:01:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Rajeev\_Bhat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajeev_bhat/32/66529_2.png) [@Rajeev\_Bhat](https://discuss.elastic.co/u/Rajeev_Bhat)
#### Post date: [April 20, 2020, 10:01am UTC](https://discuss.elastic.co/t/search-nested-field-with-filtering/228831/1 "2020-04-20T10:01:07Z")

</div>

Hello,  
I need help in searching "BirthDate" field and in response I only need the results of BirthDates(source filtering).  
Can anyone help ?

**Sample document:**

```auto
{
  "Payload": {
  
         "ProfileInfo": {
      
                 "Profile": {
        
                      "Customer": {
                             "detail1": {
                                    "Gender": "Male",
                                    "BirthDate": "1990-01-28"
                                      },
									  
							  "detail2" : {
							         "Name":"abc",
									 "ID":123
									   }
        }
      }
    }
  }
 }

```

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [May 18, 2020, 10:01am UTC](https://discuss.elastic.co/t/search-nested-field-with-filtering/228831/2 "2020-05-18T10:01:15Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
