Inconsistent results (Preference = Custom (string) UserId)

no node by node it have different score

In that case, difference in score may be due to shard(or segment) state in each node (some shard still have deleted document in segments and others not).
It's noticeable when number of documents is relatively small.

If you'd like consistent result, you can use preference parameter. As long as you use the same preference, queries should hit the same set of shards.
Are you saying preference doesn't work like that?
If you add "explain":true to the query, you'll see which node and shard each document comes from.

Masaru
On March 30, 2015 at 17:18:22, andavar (andavar_laxman@rediffmail.com) wrote:

Thanks for reply Masaru.

Is the number of hits the same every time?
yes
And are those documents have the same score?
no node by node it have different score
If I will try preference= _primary & _primary_first same score in all
nodes.

But the above link told same shards hits while preference = sessionId or
userId
I think this only not happen.

Plz suggest any settings need to be change.

--
View this message in context: http://elasticsearch-users.115913.n3.nabble.com/Inconsistent-results-Preference-Custom-string-UserId-tp4072415p4072816.html
Sent from the Elasticsearch Users mailing list archive at Nabble.com.

--
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/1427703494305-4072816.post%40n3.nabble.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/etPan.551a02f6.643c9869.3b55%40citra-2.local.
For more options, visit https://groups.google.com/d/optout.