# Facets & multi-valued, numeric fields

**URL:** <https://discuss.elastic.co/t/facets-multi-valued-numeric-fields/16359>\
**Category:** Elasticsearch\
**Created:** [March 13, 2014, 6:48pm UTC](https://discuss.elastic.co/t/facets-multi-valued-numeric-fields/16359 "2014-03-13T18:48:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eric\_Jain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eric_jain/32/834_2.png) [@Eric\_Jain](https://discuss.elastic.co/u/Eric_Jain)\
**Post date:** [March 13, 2014, 6:48pm UTC](https://discuss.elastic.co/t/facets-multi-valued-numeric-fields/16359/1 "2014-03-13T18:48:07Z")

</div>

For sorting, elasticsearch lets me specify how I want to deal with fields  
that contain multiple numeric values, so I can have elasticsearch use e.g.  
the max value in each document.

Is there a similar option I can use when aggregating documents? For  
example, I might want to get the average of the max value in each document.

[http://stackoverflow.com/questions/22368807/facets-multi-valued-fields](http://stackoverflow.com/questions/22368807/facets-multi-valued-fields)

--  
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/fa3ab4f6-1c95-4742-85b0-a13d414163de%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/fa3ab4f6-1c95-4742-85b0-a13d414163de%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:43am UTC](https://discuss.elastic.co/t/facets-multi-valued-numeric-fields/16359/2 "2017-07-06T01:43:22Z")

</div>


