Bad results due to sharding!

Hello

I have the default configuration of the elastic search node: 5 shards and 1
replica. I query the node which matches on particular field which is the
same for many documents in these 5 shards. However the search results have
different scores due to the tf-idf for that document in that particular
shard. Ideal scenario for me would be to have the same score for the
document for the same fields across different shards and I could break ties
by ordering on a second criteria which is important to me. How to
accomplish this?

--
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/ca607a86-1233-4d32-bde2-128a8596c34f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Have a look at http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-search-type.html#dfs-query-and-fetch

It should help.

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 16 juil. 2014 à 08:25, Karan Verma karan@healthtap.com a écrit :

Hello

I have the default configuration of the elastic search node: 5 shards and 1 replica. I query the node which matches on particular field which is the same for many documents in these 5 shards. However the search results have different scores due to the tf-idf for that document in that particular shard. Ideal scenario for me would be to have the same score for the document for the same fields across different shards and I could break ties by ordering on a second criteria which is important to me. How to accomplish this?

--
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/ca607a86-1233-4d32-bde2-128a8596c34f%40googlegroups.com.
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/8319E687-4FBD-4E85-BB80-F3FAFDDFF54A%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.