# Some facet enhancements ideas

**URL:** <https://discuss.elastic.co/t/some-facet-enhancements-ideas/11303>\
**Category:** Elasticsearch\
**Created:** [March 25, 2013, 8:55pm UTC](https://discuss.elastic.co/t/some-facet-enhancements-ideas/11303 "2013-03-25T20:55:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![roytmana](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roytmana/32/44855_2.png) [@roytmana](https://discuss.elastic.co/u/roytmana)\
**Post date:** [March 25, 2013, 8:55pm UTC](https://discuss.elastic.co/t/some-facet-enhancements-ideas/11303/1 "2013-03-25T20:55:43Z")

</div>

As upcoming ES version will have new faceting implementation what are your  
favorite enhancements to existing facets of new facet types?

Here are mine:

- multi-filter and multi-filter-stats - calculate count or stats for each  
of multiple filters supplied in the facet config
- Make terms-stats facet support aggregates (count, total etc) for missing  
and other categories the way terms facet does
- Make terms facet to return all terms when size=0 like terms\_stats does
- support terms and terms\_stats faceting on multiple fields (like SQL group  
by field1, field2)
- Make terms, stats, terms\_stats facet to support calculation for multiple  
fields

Alex

--  
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:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [March 26, 2013, 4:12pm UTC](https://discuss.elastic.co/t/some-facet-enhancements-ideas/11303/2 "2013-03-26T16:12:10Z")

</div>

My hopes are just for a simple refactor, no new types needed (for me).

Right now, there is a lot of boilerplate code required if you want to  
create a new facet with several types (string, int, etc.). I can create my  
own facet types, but I would like to create them once and not have to  
refactor them if there is a top-level refactoring.

Would like to translate some Lucene collectors I have over to Elasticsearch.

Cheers,

Ivan

On Mon, Mar 25, 2013 at 1:55 PM, AlexR [roytmana@gmail.com](mailto:roytmana@gmail.com) wrote:

> As upcoming ES version will have new faceting implementation what are your  
> favorite enhancements to existing facets of new facet types?
> 
> Here are mine:
> 
> - multi-filter and multi-filter-stats - calculate count or stats for each  
> of multiple filters supplied in the facet config
> - Make terms-stats facet support aggregates (count, total etc) for missing  
> and other categories the way terms facet does
> - Make terms facet to return all terms when size=0 like terms\_stats does
> - support terms and terms\_stats faceting on multiple fields (like SQL  
> group by field1, field2)
> - Make terms, stats, terms\_stats facet to support calculation for multiple  
> fields
> 
> Alex
> 
> --  
> 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:44am UTC](https://discuss.elastic.co/t/some-facet-enhancements-ideas/11303/3 "2017-07-06T02:44:22Z")

</div>

Closed on July 6, 2017, 2:44am UTC


