I've seem something like that script before on stackoverflow (
) The point is to have a randomlike sorting, but one that you can replicate
(so you can page through the results in a meaningful way).
An alternative (from the same answer on SO) would be to use:
"script" : "(doc['_id'].value + 12345).hashCode()"
On Friday, September 6, 2013 5:38:53 PM UTC+2, Luca Cavanna wrote:
the problem is that the class you're referring to in your script has been
deleted in 0.90. Here is the relevant commit:
May I ask what you're trying to achieve with your script? I wonder if what
you're doing is perhaps now possible without scripting.
On Friday, August 30, 2013 10:19:24 PM UTC+2, Nicholas Larsen wrote:
The following sort script used to work in 0.2 but now fails in 0.9:
The error I am receiving is:
PropertyAccessException[[Error: unresolvable property or identifier: org]
I cannot figure out the correct words to use in order to google possible
solutions to this problem. Any ideas to point me in the right direction
would be much appreciated.
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.