# Facet filters on parent fields

**URL:** https://discuss.elastic.co/t/facet-filters-on-parent-fields/13910
**Category:** Elasticsearch
**Created:** [October 10, 2013, 7:08pm UTC](https://discuss.elastic.co/t/facet-filters-on-parent-fields/13910 "2013-10-10T19:08:23Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)
#### Post date: [October 10, 2013, 7:08pm UTC](https://discuss.elastic.co/t/facet-filters-on-parent-fields/13910/1 "2013-10-10T19:08:23Z")

</div>

It is currently not possible to filter faceted nested documents using  
fields from the parent/root document. What workarounds is anyone using?  
From my experimentation:

1. Filtered queries (not possible with my use case)
2. multi search (too expensive)
3. add fields to nested documents (too expensive)
4. ???

Tried to come up with a scripted solution but came up empty. This issue is  
the first roadblock I have ever faced with elasticsearch. I usually find  
some hack around issues! Any suggestions?

Cheers,

Ivan

--  
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:12am UTC](https://discuss.elastic.co/t/facet-filters-on-parent-fields/13910/2 "2017-07-06T02:12:59Z")

</div>


