lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <erickerick...@gmail.com>
Subject Re: Unique results in BooleanQuery
Date Wed, 17 Dec 2008 14:10:31 GMT
You could also think about a filter. Just run q1 as a regular query.
Use one of the Collector methods to create a Filter. At the end,
invert the Filter and use it as a parameter for your second query.

Best
Erick

On Wed, Dec 17, 2008 at 12:23 AM, Jay Malaluan <exst_jmalaluan@yahoo.com>wrote:

>
> Hi,
>
> Anyone knowledgeable on how to get unique hits using the BooleanQuery?
> If I have 2 queries so the when the 1st query is processed then the 2nd
> query will not anymore return the same results from the 1st query.
>
>
> Regards,
> Jay Malaluan
> --
> View this message in context:
> http://www.nabble.com/Unique-results-in-BooleanQuery-tp21047428p21047428.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

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