You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by is_maximum <mn...@gmail.com> on 2007/03/29 09:38:00 UTC

How to get the intersection of two Hits?

Hi

suppose we have two Hits, now we need the documents which exists in both of
them and ignore the others.

is there any workaround?

thanks

Regards
Mohammad
-- 
View this message in context: http://www.nabble.com/How-to-get-the-intersection-of-two-Hits--tf3484844.html#a9728397
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


Re: How to get the intersection of two Hits?

Posted by Mohammad Norouzi <mn...@gmail.com>.
I just want to say, the common documents base on a field and not document id

On 3/29/07, is_maximum <mn...@gmail.com> wrote:
>
>
> Hi
>
> suppose we have two Hits, now we need the documents which exists in both
> of
> them and ignore the others.
>
> is there any workaround?
>
> thanks
>
> Regards
> Mohammad
> --
> View this message in context:
> http://www.nabble.com/How-to-get-the-intersection-of-two-Hits--tf3484844.html#a9728397
> 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
>
>


-- 
Regards,
Mohammad

Re: How to get the intersection of two Hits?

Posted by Daniel Noll <da...@nuix.com>.
is_maximum wrote:
> Hi
> 
> suppose we have two Hits, now we need the documents which exists in both of
> them and ignore the others.
> 
> is there any workaround?

Can you use a BooleanQuery instead?

Daniel


-- 
Daniel Noll

Nuix Pty Ltd
Suite 79, 89 Jones St, Ultimo NSW 2007, Australia    Ph: +61 2 9280 0699
Web: http://nuix.com/                               Fax: +61 2 9212 6902

This message is intended only for the named recipient. If you are not
the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
message or attachment is strictly prohibited.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org