John Wang created LUCENE-7597:
---------------------------------
Summary: MultiFieldQueryParser does not honor default operator
when there is a special character
Key: LUCENE-7597
URL: https://issues.apache.org/jira/browse/LUCENE-7597
Project: Lucene - Core
Issue Type: Bug
Components: core/queryparser
Affects Versions: 6.3
Reporter: John Wang
simple code snippet
MultiFieldQueryParser mp = new MultiFieldQueryParser(new String[]{"test"}, new
StandardAnalyzer());
mp.setDefaultOperator(Operator.AND);
System.out.println(mp.parse(qstring));
if qstring is just 2 tokens, e.g: "you me", behavior is correct:
+(test:you) +(test:me)
now if qstring contains 2 tokens connected by a special char, e.g.: "you&me",
behavior is always OR, e.g.
(test:you) (test:me)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]