# Term Vector ttf from all shards

**URL:** <https://discuss.elastic.co/t/term-vector-ttf-from-all-shards/17402>\
**Category:** Elasticsearch\
**Created:** [May 7, 2014, 9:54pm UTC](https://discuss.elastic.co/t/term-vector-ttf-from-all-shards/17402 "2014-05-07T21:54:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Attila\_Laszlo](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@Attila\_Laszlo](https://discuss.elastic.co/u/Attila_Laszlo)\
**Post date:** [May 7, 2014, 9:54pm UTC](https://discuss.elastic.co/t/term-vector-ttf-from-all-shards/17402/1 "2014-05-07T21:54:13Z")

</div>

Hi all!

I would like to get from elasticsearch that a term is how often occurs in  
all documents. So the total frequency of the term.  
As far as I know, the Term Vector's total term frequency can vary depending  
on the shard.  
Are there any opportunity to get this value from elasticsearch for sum all  
the shards? I have to know exactly the total frequency of the word.  
Also I would like to know the sum of the frequency of a term in selected  
documents. I can do that with multi term vectors with the ids parameter. I  
manually sum the term\_freq for the specific term from all documents from  
the result (on C# side). Is that correct or are there any better way for  
that?

Thanks a lot for the help!

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/c00e93f7-1dbe-4452-8178-f6b8b7d61813%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c00e93f7-1dbe-4452-8178-f6b8b7d61813%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 1:30am UTC](https://discuss.elastic.co/t/term-vector-ttf-from-all-shards/17402/2 "2017-07-06T01:30:56Z")

</div>


