Thanks But I will get these Hits objects in two cases. First I will search and store it in temp location and next time I search I get the new hits object . now I need to get the intersection
Thanks Ravi Kumar Jaladanki -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 18, 2006 7:13 PM To: java-user@lucene.apache.org Cc: Ravi Subject: Re: :intersection of two hits objects: Why not combine the two searches with an AND operator (search 1) AND (search2) Regards Marco ---- Ravi <[EMAIL PROTECTED]> schrijft: > Hi > > > > > > I want to find out the intersection of two hits objects please help me > > > > > > Hits hits1 = Searcher.searh(strQuery1); > > Hits hits2 = Searcher.searh(strQuery2); > > > > > > Now In hits1 contains records numbers 3,4 ,5,6 and > > Hits2 contains records numbers 3,6,8,9 > > Now I need a solution which can give the hits object which contains 3,6 > records > > > > > > > > I would appreciate any help from all > > > > > > Thanks > > > > Ravi Kumar Jaladanki > > > > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]