# Obtaining the Term Vector for an index, and total word count of the index

**URL:** <https://discuss.elastic.co/t/obtaining-the-term-vector-for-an-index-and-total-word-count-of-the-index/175230>\
**Category:** Elasticsearch\
**Created:** [April 3, 2019, 2:42pm UTC](https://discuss.elastic.co/t/obtaining-the-term-vector-for-an-index-and-total-word-count-of-the-index/175230 "2019-04-03T14:42:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![arclinear](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@arclinear](https://discuss.elastic.co/u/arclinear)\
**Post date:** [April 3, 2019, 2:42pm UTC](https://discuss.elastic.co/t/obtaining-the-term-vector-for-an-index-and-total-word-count-of-the-index/175230/1 "2019-04-03T14:42:54Z")

</div>

Currently, my index has 62k records, and I would like to retrieve the count of every unique term in my index, however, the multi termvector API seems to explicitly require a document id, may I know if there is a way for me to retrieve this metric wholesale ?

If not, may I know if it is possible to obtain a total word count of all documents in the index ?

---

<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 1, 2019, 2:43pm UTC](https://discuss.elastic.co/t/obtaining-the-term-vector-for-an-index-and-total-word-count-of-the-index/175230/2 "2019-05-01T14:43:08Z")

</div>

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