# Sampler aggregation of range field?

**URL:** <https://discuss.elastic.co/t/sampler-aggregation-of-range-field/90408>\
**Category:** Elasticsearch\
**Created:** [June 22, 2017, 7:57am UTC](https://discuss.elastic.co/t/sampler-aggregation-of-range-field/90408 "2017-06-22T07:57:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PaveLiArcH](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paveliarch/32/16536_2.png) [@PaveLiArcH](https://discuss.elastic.co/u/PaveLiArcH)\
**Post date:** [June 22, 2017, 7:57am UTC](https://discuss.elastic.co/t/sampler-aggregation-of-range-field/90408/1 "2017-06-22T07:57:17Z")

</div>

How to collect values of field with one of [range](https://www.elastic.co/guide/en/elasticsearch/reference/current/range.html) types (e.g. float\_range)?  
If this is not possible, maybe it can be emulated using script?

---

<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 20, 2017, 7:57am UTC](https://discuss.elastic.co/t/sampler-aggregation-of-range-field/90408/2 "2017-07-20T07:57:23Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
