mirror of https://github.com/apache/lucene.git
parent
9b5edabf21
commit
5eeb760dae
|
@ -294,9 +294,9 @@ public class ComplexPhraseQueryParser extends QueryParser {
|
||||||
|
|
||||||
if (qc instanceof BooleanQuery || qc instanceof SynonymQuery) {
|
if (qc instanceof BooleanQuery || qc instanceof SynonymQuery) {
|
||||||
ArrayList<SpanQuery> sc = new ArrayList<>();
|
ArrayList<SpanQuery> sc = new ArrayList<>();
|
||||||
BooleanQuery booleanCaluse =
|
BooleanQuery booleanClause =
|
||||||
qc instanceof BooleanQuery ? (BooleanQuery) qc : convert((SynonymQuery) qc);
|
qc instanceof BooleanQuery ? (BooleanQuery) qc : convert((SynonymQuery) qc);
|
||||||
addComplexPhraseClause(sc, booleanCaluse);
|
addComplexPhraseClause(sc, booleanClause);
|
||||||
if (sc.size() > 0) {
|
if (sc.size() > 0) {
|
||||||
allSpanClauses[i] = sc.get(0);
|
allSpanClauses[i] = sc.get(0);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue