mirror of https://github.com/apache/lucene.git
improve variable name
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1500181 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f134d0856b
commit
f549dc94ff
|
@ -415,7 +415,7 @@ final class FreqProxTermsWriterPerField extends TermsHashConsumerPerField implem
|
|||
// which all share the same term. Now we must
|
||||
// interleave the docID streams.
|
||||
int docFreq = 0;
|
||||
long totTF = 0;
|
||||
long totalTermFreq = 0;
|
||||
int docID = 0;
|
||||
|
||||
while(true) {
|
||||
|
@ -483,7 +483,7 @@ final class FreqProxTermsWriterPerField extends TermsHashConsumerPerField implem
|
|||
}
|
||||
}
|
||||
|
||||
totTF += termFreq;
|
||||
totalTermFreq += termFreq;
|
||||
|
||||
// Carefully copy over the prox + payload info,
|
||||
// changing the format to match Lucene's segment
|
||||
|
@ -540,8 +540,8 @@ final class FreqProxTermsWriterPerField extends TermsHashConsumerPerField implem
|
|||
}
|
||||
postingsConsumer.finishDoc();
|
||||
}
|
||||
termsConsumer.finishTerm(text, new TermStats(docFreq, writeTermFreq ? totTF : -1));
|
||||
sumTotalTermFreq += totTF;
|
||||
termsConsumer.finishTerm(text, new TermStats(docFreq, writeTermFreq ? totalTermFreq : -1));
|
||||
sumTotalTermFreq += totalTermFreq;
|
||||
sumDocFreq += docFreq;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue