diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/complexPhrase/ComplexPhraseQueryParser.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/complexPhrase/ComplexPhraseQueryParser.java index 72a709bd4e0..18476f50c2b 100644 --- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/complexPhrase/ComplexPhraseQueryParser.java +++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/complexPhrase/ComplexPhraseQueryParser.java @@ -294,9 +294,9 @@ public class ComplexPhraseQueryParser extends QueryParser { if (qc instanceof BooleanQuery || qc instanceof SynonymQuery) { ArrayList 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 {