# Facet on results of another facet

**URL:** <https://discuss.elastic.co/t/facet-on-results-of-another-facet/15300>\
**Category:** Elasticsearch\
**Created:** [January 17, 2014, 8:05pm UTC](https://discuss.elastic.co/t/facet-on-results-of-another-facet/15300 "2014-01-17T20:05:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevin\_Pearson](https://avatars.discourse-cdn.com/v4/letter/k/ac91a4/32.png) [@Kevin\_Pearson](https://discuss.elastic.co/u/Kevin_Pearson)\
**Post date:** [January 17, 2014, 8:05pm UTC](https://discuss.elastic.co/t/facet-on-results-of-another-facet/15300/1 "2014-01-17T20:05:01Z")

</div>

I have been trying to find a way to do this, and I am not sure if it is  
possible.

Is it possible to do a facet on the results of another facet?  
I would like to use a terms\_stats facet but only return terms that have a  
max and min that are different.

Example:

type: book:  
{  
"title" : string,  
"store" : string,  
"price" : float,  
}

I want to find all the book titles that have multiple prices.

Thank you.

--  
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/978faf93-8aa0-467f-8ab3-78e056316b0f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/978faf93-8aa0-467f-8ab3-78e056316b0f%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [January 17, 2014, 9:06pm UTC](https://discuss.elastic.co/t/facet-on-results-of-another-facet/15300/2 "2014-01-17T21:06:32Z")

</div>

Faceting facet results is possible with the aggregations framework 🙂

For an introduction see

[http://chrissimpson.co.uk/elasticsearch-aggregations-overview.html](http://chrissimpson.co.uk/elasticsearch-aggregations-overview.html)

Jörg

--  
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/CAKdsXoHyZVauNRugu85K9R3b2ChAU4EThUU0Q%2BTQnvdVTz%3DftQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoHyZVauNRugu85K9R3b2ChAU4EThUU0Q%2BTQnvdVTz%3DftQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Kevin\_Pearson](https://avatars.discourse-cdn.com/v4/letter/k/ac91a4/32.png) [@Kevin\_Pearson](https://discuss.elastic.co/u/Kevin_Pearson)\
**Post date:** [January 22, 2014, 4:43pm UTC](https://discuss.elastic.co/t/facet-on-results-of-another-facet/15300/3 "2014-01-22T16:43:41Z")

</div>

This is what I expected the answer to be. We will be looking into upgrading  
to 1.0.0 soon and take advantage of aggregations.  
Thank you!

Kevin

On Friday, January 17, 2014 1:06:32 PM UTC-8, Jörg Prante wrote:

> Faceting facet results is possible with the aggregations framework 🙂
> 
> For an introduction see
> 
> [Elasticsearch Aggregations Overview | Chris Simpson - Software Developer](http://chrissimpson.co.uk/elasticsearch-aggregations-overview.html)
> 
> Jörg

--  
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/05fc955b-4ab4-496a-afbc-935914baabf3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/05fc955b-4ab4-496a-afbc-935914baabf3%40googlegroups.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, 1:55am UTC](https://discuss.elastic.co/t/facet-on-results-of-another-facet/15300/4 "2017-07-06T01:55:20Z")

</div>

Closed on July 6, 2017, 1:55am UTC


