lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Diviacco <patrick.divia...@gmail.com>
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.

thanks

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

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