Getting all last documents with the same value?

(ddorian43) #1

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).


(ddorian43) #2


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


(ddorian43) #3

bump(2); Anybody any idea ?

(system) #4

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