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:
Erik Hatcher 2005-03-07 21:56:36 +00:00
parent 27614d6a39
commit 90ff23fb92
2 changed files with 4 additions and 2 deletions

View File

@ -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) {

View File

@ -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)