# ES 6.5.2 Terms statistics for a text field in the whole index

**URL:** <https://discuss.elastic.co/t/es-6-5-2-terms-statistics-for-a-text-field-in-the-whole-index/181990>\
**Category:** Elasticsearch\
**Created:** [May 21, 2019, 11:58am UTC](https://discuss.elastic.co/t/es-6-5-2-terms-statistics-for-a-text-field-in-the-whole-index/181990 "2019-05-21T11:58:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ld\_pvl](https://avatars.discourse-cdn.com/v4/letter/l/cdc98d/32.png) [@ld\_pvl](https://discuss.elastic.co/u/ld_pvl)\
**Post date:** [May 21, 2019, 11:58am UTC](https://discuss.elastic.co/t/es-6-5-2-terms-statistics-for-a-text-field-in-the-whole-index/181990/1 "2019-05-21T11:58:42Z")

</div>

Hi Team,

I have a text field in my index that is analyzed but termvectors and fielddata are not enabled for that text field.

I just want to get some rough statistics for the terms for that field such as roughly how many terms there are in total for that field and min and max length of the terms, and if possible count of terms for each term length.

Is there any API for doing this?

Cheers,

---

<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:** [June 18, 2019, 11:58am UTC](https://discuss.elastic.co/t/es-6-5-2-terms-statistics-for-a-text-field-in-the-whole-index/181990/2 "2019-06-18T11:58:42Z")

</div>

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