> It's not really possible.
> Lucene must iterate over all of the hits before it knows for sure that
> it has the top sorted by any criteria (other than docid).
> A Collector is called for every hit as it happens, and thus one can't
> specify a sort order (sorting itself is actually implemented with a
> sorting Collector).
Ok, so the sort doesn't actually affect the order in which a searcher
iterates over an index, it just gets used by a TopDocsCollector to
sort hits as they come in. I guess that makes sense. Thanks!
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
|