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

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

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/2412d76b-d49c-4c22-8e93-6be3c588b86f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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 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.
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?utm_medium=email&utm_source=footer
.
For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8EoMh8Lgb_cSuJGLMzzTeq05L%3DpK8FnrA2e1uGCpdNgQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.