clarify comments

git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@478173 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2006-11-22 14:38:56 +00:00
parent 57653c5490
commit 91c83248e6

View File

@ -774,7 +774,9 @@ public class SolrIndexSearcher extends Searcher implements SolrInfoMBean {
public void collect(int doc, float score) {
if (filt!=null && !filt.exists(doc)) return;
if (numHits[0]++ < lastDocRequested || score >= minScore) {
// if docs are always delivered in order, we could use "score>minScore"
// TODO: if docs are always delivered in order, we could use "score>minScore"
// instead of "score>=minScore" and avoid tiebreaking scores
// in the priority queue.
// but might BooleanScorer14 might still be used and deliver docs out-of-order?
hq.insert(new ScoreDoc(doc, score));
minScore = ((ScoreDoc)hq.top()).score;