# Global Scores in ElasticSearch

**URL:** <https://discuss.elastic.co/t/global-scores-in-elasticsearch/13727>\
**Category:** Elasticsearch\
**Created:** [September 23, 2013, 6:53pm UTC](https://discuss.elastic.co/t/global-scores-in-elasticsearch/13727 "2013-09-23T18:53:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phani](https://avatars.discourse-cdn.com/v4/letter/p/f1d935/32.png) [@Phani](https://discuss.elastic.co/u/Phani)\
**Post date:** [September 23, 2013, 6:53pm UTC](https://discuss.elastic.co/t/global-scores-in-elasticsearch/13727/1 "2013-09-23T18:53:14Z")

</div>

Hi,

I'm new to ElasticSearch and just started learning about it. I'm  
wondering if the relevancy scores reflect the global score i.e. lets say if  
we are using simple TF-IDF as our relevance measure, is the TF-IDF computed  
across all the documents for the index (across all shards) or only for that  
shard ?

Also, how does some of the search parameters like rows, sort by etc.. work  
across shards.

Thanks.

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [September 24, 2013, 6:23am UTC](https://discuss.elastic.co/t/global-scores-in-elasticsearch/13727/2 "2013-09-24T06:23:00Z")

</div>

By default, TFIDF values are calculated per shard. You can change your  
query to use distributed term frequencies across an index. For more  
information, see the documentation on search types:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Cheers,

Ivan

On Mon, Sep 23, 2013 at 11:53 AM, Phani Chaitanya [pvempaty.usc@gmail.com](mailto:pvempaty.usc@gmail.com)wrote:

> Hi,
> 
> I'm new to Elasticsearch and just started learning about it. I'm  
> wondering if the relevancy scores reflect the global score i.e. lets say if  
> we are using simple TF-IDF as our relevance measure, is the TF-IDF computed  
> across all the documents for the index (across all shards) or only for that  
> shard ?
> 
> Also, how does some of the search parameters like rows, sort by etc.. work  
> across shards.
> 
> Thanks.
> 
> --  
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Phani](https://avatars.discourse-cdn.com/v4/letter/p/f1d935/32.png) [@Phani](https://discuss.elastic.co/u/Phani)\
**Post date:** [September 24, 2013, 5:41pm UTC](https://discuss.elastic.co/t/global-scores-in-elasticsearch/13727/3 "2013-09-24T17:41:50Z")

</div>

Thanks for the pointers.

On Monday, September 23, 2013 11:23:00 PM UTC-7, Ivan Brusic wrote:

> By default, TFIDF values are calculated per shard. You can change your  
> query to use distributed term frequencies across an index. For more  
> information, see the documentation on search types:  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/search/search-type/)
> 
> Cheers,
> 
> Ivan
> 
> On Mon, Sep 23, 2013 at 11:53 AM, Phani Chaitanya \<[pvempa...@gmail.com](mailto:pvempa...@gmail.com)\<javascript:\>
> 
> > wrote:
> 
> > Hi,
> > 
> > I'm new to Elasticsearch and just started learning about it. I'm  
> > wondering if the relevancy scores reflect the global score i.e. lets say if  
> > we are using simple TF-IDF as our relevance measure, is the TF-IDF computed  
> > across all the documents for the index (across all shards) or only for that  
> > shard ?
> > 
> > Also, how does some of the search parameters like rows, sort by etc..  
> > work across shards.
> > 
> > Thanks.
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:14am UTC](https://discuss.elastic.co/t/global-scores-in-elasticsearch/13727/4 "2017-07-06T02:14:52Z")

</div>


