Limit on has child query?

(Animesh Singh) #1

Hey ,
I have a requirement of that when i am performing has child query i want elastic search to take top ten hits of child document and then return their parents instead of returning all the parents of all the hits . Anyone know's how to do this ?