# How to get the term frequency in ES?

**URL:** <https://discuss.elastic.co/t/how-to-get-the-term-frequency-in-es/72256>\
**Category:** Elasticsearch\
**Created:** [January 20, 2017, 3:56am UTC](https://discuss.elastic.co/t/how-to-get-the-term-frequency-in-es/72256 "2017-01-20T03:56:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yongyao\_Jiang](https://avatars.discourse-cdn.com/v4/letter/y/c4cdca/32.png) [@Yongyao\_Jiang](https://discuss.elastic.co/u/Yongyao_Jiang)\
**Post date:** [January 20, 2017, 3:56am UTC](https://discuss.elastic.co/t/how-to-get-the-term-frequency-in-es/72256/1 "2017-01-20T03:56:47Z")

</div>

Hi guys,

Wondering if it is possible to get how many times a term has appeared in the entire index? I understand I can get term frequency per doc through term vector, but how can I do it with the entire index.

Have seen some discussion here [http://stackoverflow.com/questions/13217849/elasticsearch-return-term-frequency-of-a-single-field](http://stackoverflow.com/questions/13217849/elasticsearch-return-term-frequency-of-a-single-field), which is five years ago.

Any update on this issue.

Thanks,  
Cody

---

<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:** [February 17, 2017, 3:56am UTC](https://discuss.elastic.co/t/how-to-get-the-term-frequency-in-es/72256/2 "2017-02-17T03:56:52Z")

</div>

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