You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mk...@apache.org on 2024/11/21 06:13:29 UTC

(lucene) branch main updated: Update ComplexPhraseQueryParser.java (#14005)

This is an automated email from the ASF dual-hosted git repository.

mkhl pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git


The following commit(s) were added to refs/heads/main by this push:
     new 5eeb760dae3 Update ComplexPhraseQueryParser.java (#14005)
5eeb760dae3 is described below

commit 5eeb760dae3d31e57b4274ad1d2646358a9037e8
Author: Paul King <pa...@asert.com.au>
AuthorDate: Thu Nov 21 16:13:23 2024 +1000

    Update ComplexPhraseQueryParser.java (#14005)
    
    Fix typo
---
 .../lucene/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<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 {