mirror of
https://github.com/apache/lucene.git
synced 2025-02-22 01:56:16 +00:00
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:
parent
57653c5490
commit
91c83248e6
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user