I was attempting to apply a random, consistent sort order using a sort
script. However the results indicated Elastic Search first ran the query
and filter, getting the first 20 results for my pagination settings, and
then only applied the sort to those 20 documents (rather than applying to
all documents and affecting the 20 documents returned on the first page).
See here for more details (ignore the hash function related questions):
As my own answer on that question states, I resolved it by instead using a
custom score script. However I just wanted to get a clarification of why
this behavior occurred, and possibly submit it as a bug if it is not by
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 email@example.com.
For more options, visit https://groups.google.com/groups/opt_out.