mirror of https://github.com/apache/lucene.git
Fix CheckIndex to correctly flag the automaton as binary.
This commit is contained in:
parent
5152051f68
commit
91002d04d3
|
@ -2318,7 +2318,7 @@ public final class CheckIndex implements Closeable {
|
|||
startTerm = new BytesRef();
|
||||
checkTermsIntersect(terms, automaton, startTerm);
|
||||
|
||||
automaton = Automata.makeAnyBinary();
|
||||
automaton = Automata.makeNonEmptyBinary();
|
||||
startTerm = new BytesRef(new byte[] {'l'});
|
||||
checkTermsIntersect(terms, automaton, startTerm);
|
||||
|
||||
|
@ -2369,8 +2369,8 @@ public final class CheckIndex implements Closeable {
|
|||
throws IOException {
|
||||
TermsEnum allTerms = terms.iterator();
|
||||
automaton = Operations.determinize(automaton, Operations.DEFAULT_DETERMINIZE_WORK_LIMIT);
|
||||
CompiledAutomaton compiledAutomaton = new CompiledAutomaton(automaton);
|
||||
ByteRunAutomaton runAutomaton = new ByteRunAutomaton(automaton);
|
||||
CompiledAutomaton compiledAutomaton = new CompiledAutomaton(automaton, false, true, true);
|
||||
ByteRunAutomaton runAutomaton = new ByteRunAutomaton(automaton, true);
|
||||
TermsEnum filteredTerms = terms.intersect(compiledAutomaton, startTerm);
|
||||
BytesRef term;
|
||||
if (startTerm != null) {
|
||||
|
|
Loading…
Reference in New Issue