lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Diviacco <>
Subject Re: Filter to retrieve random documents without specific terms ?
Date Tue, 29 Mar 2011 19:00:04 GMT
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.


On 29 March 2011 20:40, Patrick Diviacco <> 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

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message