Re: TopDocsCollector and sorting

2011-03-15 Thread Israel Tsadok
TopDocsCollector.topDocs() does return the results sorted, by score. It basically returns a slice of a PriorityQueue. You can take a look at the source, it's one of the easier parts of t

TopDocsCollector and sorting

2011-03-15 Thread Ryan Aylward
Does the TopDocsCollector sort the docs it returns? The java doc for... public final TopDocs topDocs(int start) states Returns the documents in the range [start .. pq.size()) that were collected by this collector. Note that if start >= pq.size(), an empty TopDocs is returned. This method i