LUCENE-2843: fix silly ob1 in the index term selectors

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1061230 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2011-01-20 11:34:10 +00:00
parent ca0598b3e7
commit fb20497e42

View File

@ -76,7 +76,7 @@ public class VariableGapTermsIndexWriter extends TermsIndexWriterBase {
@Override
public boolean isIndexTerm(BytesRef term, TermStats stats) {
if (count >= interval) {
count = 0;
count = 1;
return true;
} else {
count++;
@ -101,7 +101,7 @@ public class VariableGapTermsIndexWriter extends TermsIndexWriterBase {
@Override
public boolean isIndexTerm(BytesRef term, TermStats stats) {
if (stats.docFreq >= docFreqThresh || count >= interval) {
count = 0;
count = 1;
return true;
} else {
count++;