Ok I've solved the first part of the problem. I'm now selecting all documents that do not contain a given term with a BooleanFilter and FilterClause, MUST NOT.
I still have to understand how to retrieve random documents and limit the number of retrieved docs to N. thanks On 29 March 2011 20:40, Patrick Diviacco <patrick.divia...@gmail.com> wrote: > Is there a Filter to get a limited number of random collection docs from > the index which DO NOT contain a specific term ? > > i.e. term="pizza" > > I want to run the query against 10 random documents of the collection that > do not contain the term "pizza". > > thanks >