comments: it took me a few minutes to figure out why this was correct

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@583359 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mike Klaas 2007-10-10 05:29:54 +00:00
parent e9c5d47cf3
commit 0ef485498a
1 changed files with 2 additions and 0 deletions

View File

@ -729,6 +729,8 @@ public class SolrIndexSearcher extends Searcher implements SolrInfoMBean {
if (superset != null) { if (superset != null) {
// check that the cache entry has scores recorded if we need them // check that the cache entry has scores recorded if we need them
if ((flags & GET_SCORES)==0 || superset.hasScores()) { if ((flags & GET_SCORES)==0 || superset.hasScores()) {
// NOTE: subset() returns null if the DocList has fewer docs than
// requested
out.docList = superset.subset(offset,len); out.docList = superset.subset(offset,len);
} }
} }