From 5eeb760dae3d31e57b4274ad1d2646358a9037e8 Mon Sep 17 00:00:00 2001 From: Paul King Date: Thu, 21 Nov 2024 16:13:23 +1000 Subject: [PATCH] Update ComplexPhraseQueryParser.java (#14005) Fix typo --- .../queryparser/complexPhrase/ComplexPhraseQueryParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {