lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Keegan" <peterlkee...@gmail.com>
Subject SolrIndexSearcher HitCollector
Date Wed, 22 Nov 2006 13:31:38 GMT
  The following code is from the HitCollector of SolrIndexSearcher:


  if (numHits[0]++ < lastDocRequested || score >= minScore) {
    // if docs are always delivered in order, we could use "score>minScore"
    // but might BooleanScorer14 might still be used and deliver docs
out-of-order?
    hq.insert(new ScoreDoc(doc, score));
    minScore = ((ScoreDoc)hq.top()).score;
  }

  Could someone explain this conditional and whether or not it is valid when
used with the trunk version of BooleanScorer2?

  Thanks,
  Peter

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message