# Can ES format number of hits to things such as 143k or 12.6m

**URL:** <https://discuss.elastic.co/t/can-es-format-number-of-hits-to-things-such-as-143k-or-12-6m/84000>\
**Category:** Elasticsearch\
**Created:** [April 28, 2017, 10:55am UTC](https://discuss.elastic.co/t/can-es-format-number-of-hits-to-things-such-as-143k-or-12-6m/84000 "2017-04-28T10:55:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![crags](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/crags/32/15112_2.png) [@crags](https://discuss.elastic.co/u/crags)\
**Post date:** [April 28, 2017, 10:55am UTC](https://discuss.elastic.co/t/can-es-format-number-of-hits-to-things-such-as-143k-or-12-6m/84000/1 "2017-04-28T10:55:32Z")

</div>

Hi - pretty much as the title suggest, I was wondering if ES has any functionality built in which can format the number of "hits" returned into a specified method or value.

For example, I perform a query, which returns say 12,253,634 results... would it be possible, or is it possible anywhere to specify a value of say "thousands" or "millions" which would return the number of hits as either "12.2m" or 12253.6k" kind of thing. I'm guessing not but thought I'd check - it may be that we need to write a function to do it via the API end.

Thanks

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 28, 2017, 11:17am UTC](https://discuss.elastic.co/t/can-es-format-number-of-hits-to-things-such-as-143k-or-12-6m/84000/2 "2017-04-28T11:17:50Z")

</div>

We only do that for some statistic APIs when you add the `?human` flag.

[https://www.elastic.co/guide/en/elasticsearch/reference/5.3/common-options.html#\_human\_readable\_output](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/common-options.html#_human_readable_output)

---

<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:** [May 26, 2017, 11:26am UTC](https://discuss.elastic.co/t/can-es-format-number-of-hits-to-things-such-as-143k-or-12-6m/84000/3 "2017-05-26T11:26:29Z")

</div>

Closed on May 26, 2017, 11:26am UTC

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