Random inner hits


(Francesco Nero) #1

Is there any way to retrieve a set of inner hits in a random order?

Using a random_score function inside a function_score query in the nested query assigns the same random score to all inner hits for a certain parent document (it seems the random score gets calculated once per parent document hit, and not for each inner hit).


(system) #2