lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: HitCollector and sorting
Date Thu, 12 Jun 2008 23:31:25 GMT

: So, how can I get the same results using the HitCollector? Also it would be
: really nice, if you could point me to some examples of using it...

Take a look at TopFieldDocCollector  It's a HitCollector provided out of 
the box that does sorting.

If you look at the trunk, the (recently updateed) "demo" file 
SearchFiles.java shows how to use TopDocCollector ... TopFieldDocCollector 
works exactly the same way, except that it knows about Sorting.


-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message