# Nested Filter

**URL:** <https://discuss.elastic.co/t/nested-filter/20217>\
**Category:** Elasticsearch\
**Created:** [October 13, 2014, 1:16pm UTC](https://discuss.elastic.co/t/nested-filter/20217 "2014-10-13T13:16:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shekhar\_chauhan](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@shekhar\_chauhan](https://discuss.elastic.co/u/shekhar_chauhan)\
**Post date:** [October 13, 2014, 1:16pm UTC](https://discuss.elastic.co/t/nested-filter/20217/1 "2014-10-13T13:16:13Z")

</div>

Hi All,  
I am facing a problem in implementation of Nested Filter.I have attached  
a document.Please first see it. My requirement is - i want to perform  
nested filter on the sectionResults.itemResults.InspectionItem and  
sectionResults.itemResults.DateValue(on both together). I have already  
attached my couchdb database document to this mail.  
and i am trying this -

GET realtek\_release\_v6/\_search  
{  
"query": {  
"filtered": {  
"query": {  
"match": {  
"ChecklistName": "NP Online"  
}  
},  
"filter": {  
"nested": {  
"path": "sectionResults.itemResults",  
"filter":{  
"bool": {  
"must": [  
{  
"range": {  
"sectionResults.itemResults.DateValue": {  
"from": "2014-10-01",  
"to": "2104-10-08"  
}  
}  
},  
{  
"term": {  
"sectionResults.itemResults.InspectionItem": "Launch  
Month"  
}  
}  
]  
}  
}  
}  
}  
}  
}  
}

but it is not working.Please help me.

Thanks in advance.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/5c5002b9-697c-464c-827d-4b1f6b2235bd%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5c5002b9-697c-464c-827d-4b1f6b2235bd%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:56am UTC](https://discuss.elastic.co/t/nested-filter/20217/2 "2017-07-06T00:56:33Z")

</div>

Closed on July 6, 2017, 12:56am UTC


