On Jan 19, 2006, at 2:57 AM, Ravi wrote:
Can u please tell me how to use this query in loop because he can
refine
the search n number of time so how to maintain all the queries in
QueryFilter and use of them , Please help me I need very urgent.
If you're continually refining queries, I
Behalf Of Chris Hostetter
Sent: Thursday, January 19, 2006 12:51 PM
To: java-user@lucene.apache.org
Subject: RE: :intersection of two hits objects:
The first thing you need to keep in mind, is that a Hits object doesn't
"contain" results. The Hits class is provided as a convincen
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 18, 2006 7:12 PM
To: java-user@lucene.apache.org
Subject: Re: :intersection of two hits objects:
On Jan 18, 2006, at 8:20 AM, Ravi wrote:
>
> I want to find out the intersection of two hits objects please
> help me
>
>
>
From: Ravi <[EMAIL PROTECTED]>
: Reply-To: java-user@lucene.apache.org
: To: java-user@lucene.apache.org
: Subject: RE: :intersection of two hits objects:
:
: Thanks for your help ,
:
: I am able to get the record numbers in BitSet object but how to iterate in
: the first hits1 object with the
Ravi wrote:
Thanks for your help ,
I am able to get the record numbers in BitSet object but how to iterate in
the first hits1 object with the bitset object and retain only those
documents which contains ids existed in bitset object..
Ah.
I take it that you want the results as another Hits
[mailto:[EMAIL PROTECTED]
Sent: Thursday, January 19, 2006 7:01 AM
To: java-user@lucene.apache.org
Subject: Re: :intersection of two hits objects:
On 1/18/06, Ravi <[EMAIL PROTECTED]> wrote:
> Hi
>
> I want to find out the intersection of two hits objects please help me
On 1/18/06, Ravi <[EMAIL PROTECTED]> wrote:
> 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 n
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
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
>
>
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);
>
>
I'm still a bit new to Lucene, but the way I think you can handle it is
using a Boolean query.
//Create a bool Query
BooleanQuery boolQuery = new BooleanQuery();
Loop through each query and add it to the boolQuery
//Addend the boolean queries together Using the And syntax
boolQuery.add(queryX, t
On Jan 18, 2006, at 8:20 AM, Ravi wrote:
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 number
12 matches
Mail list logo