Random sort order

I'm interested in pulling ten results from my query, but I want the results
to be random. Is there anything built in, or would I create a custom scoring
function that just returns a random number?

-- jim

Custom scoring function is the best way, with a random seed passed as a parameter.
On Tuesday, January 11, 2011 at 10:16 PM, James Cook wrote:

I'm interested in pulling ten results from my query, but I want the results to be random. Is there anything built in, or would I create a custom scoring function that just returns a random number?

-- jim

I am a little new to ES, but I am also looking to do the same thing. For a "custom scoring function", does that mean something that is installed on the cluster, or does mean a custom script that is passed in to the cluster?

Could you give an example as to how the random sort order could be done using the Java API?