fixed previous commit

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1144304 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Simon Willnauer 2011-07-08 13:18:56 +00:00
parent 0a79de7a99
commit c274cb5309
1 changed files with 1 additions and 1 deletions

View File

@ -410,7 +410,7 @@ public class InstantiatedIndexReader extends IndexReader {
// do it up front & cache
long sum = 0;
int upto = i;
while(upto < orderedTerms.length && orderedTerms[i].equals(field)) {
while(upto < orderedTerms.length && orderedTerms[i].field().equals(field)) {
sum += orderedTerms[i].getTotalTermFreq();
upto++;
}