Skip to content

Commit

Permalink
Update ComplexPhraseQueryParser.java (apache#14005)
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
paulk-asert authored Nov 21, 2024
1 parent 9b5edab commit 5eeb760
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,9 @@ public Query rewrite(IndexSearcher indexSearcher) throws IOException {

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 {
Expand Down

0 comments on commit 5eeb760

Please sign in to comment.