# Filter nested objects based on search term

**URL:** https://discuss.elastic.co/t/filter-nested-objects-based-on-search-term/11565
**Category:** Elasticsearch
**Created:** [April 12, 2013, 1:03pm UTC](https://discuss.elastic.co/t/filter-nested-objects-based-on-search-term/11565 "2013-04-12T13:03:59Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Paul\_Lemke](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paul_lemke/32/2396_2.png) [@Paul\_Lemke](https://discuss.elastic.co/u/Paul_Lemke)
#### Post date: [April 12, 2013, 1:03pm UTC](https://discuss.elastic.co/t/filter-nested-objects-based-on-search-term/11565/1 "2013-04-12T13:03:59Z")

</div>

Hello Everyone,

I've run into something I can't figure out. I posted the question up on  
Stackoverflow:

> <https://stackoverflow.com/questions/15972132/filter-children-based-on-search-term>

Thanks!  
Paul

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)
#### Post date: [April 14, 2013, 10:20am UTC](https://discuss.elastic.co/t/filter-nested-objects-based-on-search-term/11565/2 "2013-04-14T10:20:37Z")

</div>

You can't do this with nested objects (at least not yet). You will always  
just get back the whole "root" document

You could do it with parent/child though, as you could ask for just the  
child documents

clint

On Fri, Apr 12, 2013 at 3:03 PM, Paul Lemke [paul@paulandmichelle.net](mailto:paul@paulandmichelle.net)wrote:

> Hello Everyone,
> 
> I've run into something I can't figure out. I posted the question up on  
> Stackoverflow:  
> [elasticsearch - Filter children based on search term - Stack Overflow](http://stackoverflow.com/questions/15972132/filter-children-based-on-search-term)
> 
> Thanks!  
> Paul
> 
> --  
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:41am UTC](https://discuss.elastic.co/t/filter-nested-objects-based-on-search-term/11565/3 "2017-07-06T02:41:15Z")

</div>


