Thanks, I definitely missed this. Makes it a lot more simpler to use...
Appreciate your help Chris.
Gary
-Original Message-
From: Chris Hostetter [mailto:[EMAIL PROTECTED]
Sent: Monday, September 18, 2006 08:26 AM
To: java-user@lucene.apache.org
Subject: RE: best way to get specific
: Thanks for the info on this. Since I should use the search function that
: returns TopDocs, I was wondering what was the proper way to create a
: Weight object to pass into the search function.
I think you are getting too hung up on the method summary section of the
IndexSearcher javadocs ... I
, null, 100); // no filter, want top 100 docs
For the case with a filter, would it be:
is.search(w, f, 100);
Thanks
Gary
-Original Message-
From: Chris Hostetter [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 16, 2006 07:22 AM
To: java-user@lucene.apache.org
Subject: RE: best way to
: IndexSearcher.search(Query, Filter) method). Im just wrapping a
: ConstantScoreQuery around the filter, and passing it into the
: IndexSearcher.search(Query) method to return a Hits object. Then Im
: asking for the 500th to 550th doc in the Hits object.
:
: Would such a case still cause Hits to r
PROTECTED]
Sent: Thursday, May 25, 2006 11:22 AM
To: java-user@lucene.apache.org
Subject: Re: best way to get specific results
: if a query returns 1000 results, the user is interested only in the
: results between 500&550. the way I implemented it is run a normal
query
: using IndexSercher.search(Q
: if a query returns 1000 results, the user is interested only in the
: results between 500&550. the way I implemented it is run a normal query
: using IndexSercher.search(Query()) and then get the specified documents
: out of the hits object. I am wondering if there is a more efficient way
: than