Is it possible to sort Lucene results when using a custom collector, or would I have to implement that functionality myself, in the collector object? I can’t find an overload of IndexSearcher.Search that allows me to pass in both my own collector object and a sort field.
Lucene.Net, v2.9
You have to implement the sort yourself. But Lucene.Net has an abstract class
PriorityQueuethat can be used in custom collectors (it is used internally in Lucene.Net while sorting (instead of collecting all results and then applying a sort on them) )