mirror of https://github.com/apache/lucene.git
fix the +/-a queries - easier than I thought - just restored a line of code from QueryParser.jj
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156451 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
27614d6a39
commit
90ff23fb92
|
@ -663,7 +663,8 @@ public class PrecedenceQueryParser implements PrecedenceQueryParserConstants {
|
|||
modifier = Modifier();
|
||||
q = andExpression(field);
|
||||
addClause(clauses, CONJ_NONE, modifier, q);
|
||||
firstQuery=q;
|
||||
if (modifier == MOD_NONE)
|
||||
firstQuery=q;
|
||||
label_1:
|
||||
while (true) {
|
||||
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
|
||||
|
|
|
@ -722,7 +722,8 @@ Query Query(String field) :
|
|||
modifier=Modifier() q=andExpression(field)
|
||||
{
|
||||
addClause(clauses, CONJ_NONE, modifier, q);
|
||||
firstQuery=q;
|
||||
if (modifier == MOD_NONE)
|
||||
firstQuery=q;
|
||||
}
|
||||
(
|
||||
[<OR> { orPresent=true; }] modifier=Modifier() q=andExpression(field)
|
||||
|
|
Loading…
Reference in New Issue