Update ComplexPhraseQueryParser.java (#14005)

Fix typo
This commit is contained in:
Paul King 2024-11-21 16:13:23 +10:00 committed by GitHub
parent 9b5edabf21
commit 5eeb760dae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -294,9 +294,9 @@ public class ComplexPhraseQueryParser extends QueryParser {
if (qc instanceof BooleanQuery || qc instanceof SynonymQuery) {
ArrayList<SpanQuery> sc = new ArrayList<>();
BooleanQuery booleanCaluse =
BooleanQuery booleanClause =
qc instanceof BooleanQuery ? (BooleanQuery) qc : convert((SynonymQuery) qc);
addComplexPhraseClause(sc, booleanCaluse);
addComplexPhraseClause(sc, booleanClause);
if (sc.size() > 0) {
allSpanClauses[i] = sc.get(0);
} else {