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_jmalal...@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-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>
>

Reply via email to