Constraining search results in terms of max occurrences of the same field value


(T Vinod Gupta) #1

hi,
is it possible to construct a search query such that the result set doesn't
contain more than n documents where the same field value appears. let me
explain this better..
lets say i have a simple index of tweets. fields are just "handle",
"tweet_text". now i want to search on something in the tweet_text field.
but in the search results, the maximum number of times a handle is repeated
shouldn't exceed 2.

is this possible?

thanks


(system) #2