lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
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 shows how to use TopDocCollector ... TopFieldDocCollector 
works exactly the same way, except that it knows about Sorting.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message