# Aggregation for query facets?

**URL:** <https://discuss.elastic.co/t/aggregation-for-query-facets/16050>\
**Category:** Elasticsearch\
**Created:** [February 27, 2014, 10:38am UTC](https://discuss.elastic.co/t/aggregation-for-query-facets/16050 "2014-02-27T10:38:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dantuff](https://avatars.discourse-cdn.com/v4/letter/d/e79b87/32.png) [@dantuff](https://discuss.elastic.co/u/dantuff)\
**Post date:** [February 27, 2014, 10:38am UTC](https://discuss.elastic.co/t/aggregation-for-query-facets/16050/1 "2014-02-27T10:38:50Z")

</div>

I’m currently changing all of my facet code to use the new aggregations in  
ElasticSearch 1.0. What aggregation should be used in place of the  
QueryFacet?

--  
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/d420b91b-bb3b-4e68-ad98-6b99b6d3b5a4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d420b91b-bb3b-4e68-ad98-6b99b6d3b5a4%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:** ![Binh\_Ly\_2](https://avatars.discourse-cdn.com/v4/letter/b/d07c76/32.png) [@Binh\_Ly\_2](https://discuss.elastic.co/u/Binh_Ly_2)\
**Post date:** [February 27, 2014, 1:02pm UTC](https://discuss.elastic.co/t/aggregation-for-query-facets/16050/2 "2014-02-27T13:02:33Z")

</div>

You'll want the filter aggregation:

[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations-bucket-filter-aggregation.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations-bucket-filter-aggregation.html)

--  
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/b3c44c8e-45cd-4283-9228-051f650d186c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b3c44c8e-45cd-4283-9228-051f650d186c%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:46am UTC](https://discuss.elastic.co/t/aggregation-for-query-facets/16050/3 "2017-07-06T01:46:55Z")

</div>


