Getting all last documents with the same value?

Hi friends,

Is it possible when sorting by a field, that we get all documents with the same value in the end (even if they are more than size value total docs returned ?

Meaning, if we have size:2 and values that we sort are [1,2,2,2,3,4,5], then we get back [1,2,2,2] since they have the same value (their ordering doesn't matter).

Thanks

bump();

I know with the default min-heap it's not possible, but maybe using some kind of script ? Or it needs a custom plugin ?

Thanks

bump(2); Anybody any idea ?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.