diff --git a/lucene/core/src/java/org/apache/lucene/codecs/blocktree/FieldReader.java b/lucene/core/src/java/org/apache/lucene/codecs/blocktree/FieldReader.java index 8846222b641..294b9572277 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/blocktree/FieldReader.java +++ b/lucene/core/src/java/org/apache/lucene/codecs/blocktree/FieldReader.java @@ -166,7 +166,7 @@ public final class FieldReader extends Terms { if (compiled.type != CompiledAutomaton.AUTOMATON_TYPE.NORMAL) { throw new IllegalArgumentException("please use CompiledAutomaton.getTermsEnum instead"); } - return new IntersectEnum(this, compiled, startTerm); + return new IntersectTermsEnum(this, compiled, startTerm); } /** Returns approximate RAM bytes used */ diff --git a/lucene/core/src/java/org/apache/lucene/codecs/blocktree/IntersectEnum.java b/lucene/core/src/java/org/apache/lucene/codecs/blocktree/IntersectTermsEnum.java similarity index 99% rename from lucene/core/src/java/org/apache/lucene/codecs/blocktree/IntersectEnum.java rename to lucene/core/src/java/org/apache/lucene/codecs/blocktree/IntersectTermsEnum.java index 41d9577a387..d1a08f6b8c0 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/blocktree/IntersectEnum.java +++ b/lucene/core/src/java/org/apache/lucene/codecs/blocktree/IntersectTermsEnum.java @@ -38,7 +38,7 @@ import org.apache.lucene.util.automaton.Transition; import org.apache.lucene.util.fst.FST; // NOTE: cannot seek! -final class IntersectEnum extends TermsEnum { +final class IntersectTermsEnum extends TermsEnum { private final IndexInput in; private Frame[] stack; @@ -321,7 +321,7 @@ final class IntersectEnum extends TermsEnum { // TODO: in some cases we can filter by length? eg // regexp foo*bar must be at least length 6 bytes - public IntersectEnum(FieldReader fr, CompiledAutomaton compiled, BytesRef startTerm) throws IOException { + public IntersectTermsEnum(FieldReader fr, CompiledAutomaton compiled, BytesRef startTerm) throws IOException { // if (DEBUG) { // System.out.println("\nintEnum.init seg=" + segment + " commonSuffix=" + brToString(compiled.commonSuffixRef)); // }