# Difference in the calculated score among the configured es servers for the same query in same time

**URL:** <https://discuss.elastic.co/t/difference-in-the-calculated-score-among-the-configured-es-servers-for-the-same-query-in-same-time/22553>\
**Category:** Elasticsearch\
**Created:** [March 6, 2015, 1:57pm UTC](https://discuss.elastic.co/t/difference-in-the-calculated-score-among-the-configured-es-servers-for-the-same-query-in-same-time/22553 "2015-03-06T13:57:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shanmuthu83](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@shanmuthu83](https://discuss.elastic.co/u/shanmuthu83)\
**Post date:** [March 6, 2015, 1:57pm UTC](https://discuss.elastic.co/t/difference-in-the-calculated-score-among-the-configured-es-servers-for-the-same-query-in-same-time/22553/1 "2015-03-06T13:57:07Z")

</div>

Hi All

I have 3 unique servers for elasticsearch, i made the cluster setup in this.

Each and every index has 5 shards and 2 replicas. i have an index with 4  
lac of documents in it. while perform a search query in the elasticsearch  
cluster. the returned documents have different calculated score in  
different servers.

_ex_

_Document Server 1 Server 2 Server 3_  
_-----------------------------------------------------_  
_documentA 49.379543 50.168644 49.577785_  
_documentB 17.744095 17.979729 18.046381_  
_documentC 16.880697 16.748943 16.850113_  
_documentD 10.785672 10.744943 10.806508_  
.  
.

search\_type\*=dfs\_query\_then\_fetch\*

This is because of the document frequency. but i can;t understand that all  
are calculated in shard0 itself. if we set the search preference to  
\_primary then the score same for all the request (means all the servers).  
obviously this should be. Because there is no other search hits for the  
replicas.

_My Question is_: what's happen if the search hits the replicas? it  
calculates different score in different servers?

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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6a617a65-3d55-4a4b-8200-ab927f7a55cf%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6a617a65-3d55-4a4b-8200-ab927f7a55cf%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![shanmuthu83](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@shanmuthu83](https://discuss.elastic.co/u/shanmuthu83)\
**Post date:** [March 19, 2015, 12:19pm UTC](https://discuss.elastic.co/t/difference-in-the-calculated-score-among-the-configured-es-servers-for-the-same-query-in-same-time/22553/2 "2015-03-19T12:19:15Z")

</div>

Hi All

Any updates

On Friday, 6 March 2015 19:27:07 UTC+5:30, Shanmugam wrote:

> Hi All
> 
> I have 3 unique servers for elasticsearch, i made the cluster setup in  
> this.
> 
> Each and every index has 5 shards and 2 replicas. i have an index with 4  
> lac of documents in it. while perform a search query in the elasticsearch  
> cluster. the returned documents have different calculated score in  
> different servers.
> 
> _ex_
> 
> _Document Server 1 Server 2 Server 3_  
> _-----------------------------------------------------_  
> _documentA 49.379543 50.168644 49.577785_  
> _documentB 17.744095 17.979729 18.046381_  
> _documentC 16.880697 16.748943 16.850113_  
> _documentD 10.785672 10.744943 10.806508_  
> .  
> .
> 
> search\_type\*=dfs\_query\_then\_fetch\*
> 
> This is because of the document frequency. but i can;t understand that all  
> are calculated in shard0 itself. if we set the search preference to  
> \_primary then the score same for all the request (means all the servers).  
> obviously this should be. Because there is no other search hits for the  
> replicas.
> 
> _My Question is_: what's happen if the search hits the replicas? it  
> calculates different score in different servers?
> 
> 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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/2412d76b-d49c-4c22-8e93-6be3c588b86f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2412d76b-d49c-4c22-8e93-6be3c588b86f%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 19, 2015, 3:33pm UTC](https://discuss.elastic.co/t/difference-in-the-calculated-score-among-the-configured-es-servers-for-the-same-query-in-same-time/22553/3 "2015-03-19T15:33:16Z")

</div>

Scores are based on the docs in the particular shard that is queried, so  
it's relative.

On 19 March 2015 at 05:19, Shanmugam [shanmuthu83@gmail.com](mailto:shanmuthu83@gmail.com) wrote:

> Hi All
> 
> Any updates
> 
> On Friday, 6 March 2015 19:27:07 UTC+5:30, Shanmugam wrote:
> 
> > Hi All
> > 
> > I have 3 unique servers for elasticsearch, i made the cluster setup in  
> > this.
> > 
> > Each and every index has 5 shards and 2 replicas. i have an index with 4  
> > lac of documents in it. while perform a search query in the elasticsearch  
> > cluster. the returned documents have different calculated score in  
> > different servers.
> > 
> > _ex_
> > 
> > _Document Server 1 Server 2 Server 3_  
> > _-----------------------------------------------------_  
> > _documentA 49.379543 50.168644 49.577785_  
> > _documentB 17.744095 17.979729 18.046381_  
> > _documentC 16.880697 16.748943 16.850113_  
> > _documentD 10.785672 10.744943 10.806508_  
> > .  
> > .
> > 
> > search\_type\*=dfs\_query\_then\_fetch\*
> > 
> > This is because of the document frequency. but i can;t understand that  
> > all are calculated in shard0 itself. if we set the search preference to  
> > \_primary then the score same for all the request (means all the servers).  
> > obviously this should be. Because there is no other search hits for the  
> > replicas.
> > 
> > _My Question is_: what's happen if the search hits the replicas? it  
> > calculates different score in different servers?
> > 
> > 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).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/2412d76b-d49c-4c22-8e93-6be3c588b86f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2412d76b-d49c-4c22-8e93-6be3c588b86f%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/2412d76b-d49c-4c22-8e93-6be3c588b86f%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/2412d76b-d49c-4c22-8e93-6be3c588b86f%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAEYi1X8EoMh8Lgb\_cSuJGLMzzTeq05L%3DpK8FnrA2e1uGCpdNgQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8EoMh8Lgb_cSuJGLMzzTeq05L%3DpK8FnrA2e1uGCpdNgQ%40mail.gmail.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, 12:25am UTC](https://discuss.elastic.co/t/difference-in-the-calculated-score-among-the-configured-es-servers-for-the-same-query-in-same-time/22553/4 "2017-07-06T00:25:36Z")

</div>

Closed on July 6, 2017, 12:25am UTC


