Re: hitcollector and sort

2008-01-28 Thread Mark Miller
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

hitcollector and sort

2008-01-28 Thread Cam Bazz
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.

Re: HitCollector and Sort Objects

2006-07-01 Thread Nadav Har'El
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

RE: HitCollector and Sort Objects

2006-06-30 Thread Ramana Jelda
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

HitCollector and Sort Objects

2006-06-29 Thread James Pine
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