Get every Nth doc with sorted result


I have a query sorting over a field and returns all hits (I set size to max)
Is there any way in query to specify that I only want
the first, 6th, 11th, so it would only return these, instead of return
all of
them that I have to skip unwanted.

Thanks very much

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
To view this discussion on the web visit
For more options, visit