Take a look at org.apache.lucene.search.TopFieldDocCollector :
http://lucene.apache.org/java/2_3_0/api/org/apache/lucene/search/TopFieldDocCollector.html
Cam Bazz wrote:
Hello,
How can I use a hit collector and sort object in query? I looked at the API
and sort is only usable with hits. Is it
Hello,
How can I use a hit collector and sort object in query? I looked at the API
and sort is only usable with hits. Is it even possible? since hitcollector
returns a bitset - how do we do the ordering?
Best,
-C.B.
On Thu, Jun 29, 2006, James Pine wrote about "HitCollector and Sort Objects":
> I have one type of search where I pass in a Query and
> a Sort (built with a SortField and Decompresses) and
> deal with the Hits object, and another which takes a
> Query and a HitCollector, w
pass your HitCollector which extends
TopFieldDocCollector .
Jelda
> -Original Message-
> From: James Pine [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 30, 2006 1:54 AM
> To: java-user@lucene.apache.org
> Subject: HitCollector and Sort Objects
>
> Hey,
&g
Hey,
I've looked at the documentation for:
org.apache.lucene.search.Searchable
org.apache.lucene.search.Searcher
org.apache.lucene.search.IndexSearcher
and it struck me that there are no search methods with
these signatures:
void search(Query query, Filter filter, HitCollector
results, Sort sor