# The problem of string type aggs

**URL:** <https://discuss.elastic.co/t/the-problem-of-string-type-aggs/97702>\
**Category:** Elasticsearch\
**Created:** [August 21, 2017, 3:32am UTC](https://discuss.elastic.co/t/the-problem-of-string-type-aggs/97702 "2017-08-21T03:32:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![maleibo](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@maleibo](https://discuss.elastic.co/u/maleibo)\
**Post date:** [August 21, 2017, 3:32am UTC](https://discuss.elastic.co/t/the-problem-of-string-type-aggs/97702/1 "2017-08-21T03:32:32Z")

</div>

i have a string field,but it is numeric value.how can i aggregate it? regular expression ? or any other better way?

---

<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:** [September 18, 2017, 3:32am UTC](https://discuss.elastic.co/t/the-problem-of-string-type-aggs/97702/2 "2017-09-18T03:32:40Z")

</div>

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