Result Score descending by exact match

Hiya

On Fri, 2013-02-01 at 01:44 -0800, Philipp Frenzel wrote:

Hi,

the question is, that having absolute same records in Elasticsearch
engine, we send a query with a 100% match on the index field. But
viewing the score, it's
descending slowly in different steps: 1,3,5 times the same grouped
score...

You haven't provided any example code, so I'm guessing about what you're
doing. But it is likely that you are running into the distributed
nature of ES.

Term frequencies are stored per shard. By default, you have 5 shards,
each with their own term frequencies (which will thus produce different
scores).

With more data, the distribution tends to even out, but with small
amounts of data, or rarely used terms, there can be differences.

Try adding this to your query string: search_type=dfs_query_then_fetch

That calculates the terms across all shards before running the query

clint

--
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.
For more options, visit https://groups.google.com/groups/opt_out.