Random_score page consistency

(Joanna Kochaniak) #1

I'd like to use random_score in the function_score query to recreate pages
of results, but I'm wondering whether the results will really be
consistent. If I use the same seed, the random numbers generated will be
the same. But, are documents in ES always scored in the same order? Will
the scores generated by the random function be applied to the same
documents every time (assuming I haven't reindexed)? What worries me is the
comment herehttps://github.com/elasticsearch/elasticsearch/issues/1170#issuecomment-22819670 that
says, "or with a seed (for near-consistent pagination)", in particular the
word near-consistent. Will the pages returned by random_score be
consistent or near-consistent?

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.

(system) #2