mirror of https://github.com/apache/lucene.git
- Changed QueryParser.jj to allow '-' and '+' characters in search terms.
Morus Walter's patch: http://issues.apache.org/bugzilla/show_bug.cgi?id=27491 git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150242 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
88165f0252
commit
1ebfc379fd
|
@ -71,6 +71,10 @@ $Id$
|
||||||
- default write lock timeout
|
- default write lock timeout
|
||||||
(Otis)
|
(Otis)
|
||||||
|
|
||||||
|
13. Changed QueryParser.jj to allow '-' and '+' within tokens:
|
||||||
|
http://issues.apache.org/bugzilla/show_bug.cgi?id=27491
|
||||||
|
(Morus Walter via Otis)
|
||||||
|
|
||||||
|
|
||||||
1.3 final
|
1.3 final
|
||||||
|
|
||||||
|
|
|
@ -446,7 +446,7 @@ PARSER_END(QueryParser)
|
||||||
| <#_TERM_START_CHAR: ( ~[ " ", "\t", "\n", "\r", "+", "-", "!", "(", ")", ":", "^",
|
| <#_TERM_START_CHAR: ( ~[ " ", "\t", "\n", "\r", "+", "-", "!", "(", ")", ":", "^",
|
||||||
"[", "]", "\"", "{", "}", "~", "*", "?" ]
|
"[", "]", "\"", "{", "}", "~", "*", "?" ]
|
||||||
| <_ESCAPED_CHAR> ) >
|
| <_ESCAPED_CHAR> ) >
|
||||||
| <#_TERM_CHAR: ( <_TERM_START_CHAR> | <_ESCAPED_CHAR> ) >
|
| <#_TERM_CHAR: ( <_TERM_START_CHAR> | <_ESCAPED_CHAR> | "-" | "+" ) >
|
||||||
| <#_WHITESPACE: ( " " | "\t" | "\n" | "\r") >
|
| <#_WHITESPACE: ( " " | "\t" | "\n" | "\r") >
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -181,7 +181,7 @@ private final int jjMoveNfa_3(int startState, int curPos)
|
||||||
jjCheckNAddStates(0, 6);
|
jjCheckNAddStates(0, 6);
|
||||||
break;
|
break;
|
||||||
case 20:
|
case 20:
|
||||||
if ((0x7bffd0f8ffffd9ffL & l) == 0L)
|
if ((0x7bfff8f8ffffd9ffL & l) == 0L)
|
||||||
break;
|
break;
|
||||||
if (kind > 17)
|
if (kind > 17)
|
||||||
kind = 17;
|
kind = 17;
|
||||||
|
@ -195,7 +195,7 @@ private final int jjMoveNfa_3(int startState, int curPos)
|
||||||
jjCheckNAddTwoStates(20, 21);
|
jjCheckNAddTwoStates(20, 21);
|
||||||
break;
|
break;
|
||||||
case 23:
|
case 23:
|
||||||
if ((0x7bffd0f8ffffd9ffL & l) != 0L)
|
if ((0x7bfff8f8ffffd9ffL & l) != 0L)
|
||||||
jjCheckNAddStates(7, 9);
|
jjCheckNAddStates(7, 9);
|
||||||
break;
|
break;
|
||||||
case 24:
|
case 24:
|
||||||
|
@ -207,7 +207,7 @@ private final int jjMoveNfa_3(int startState, int curPos)
|
||||||
jjCheckNAddStates(7, 9);
|
jjCheckNAddStates(7, 9);
|
||||||
break;
|
break;
|
||||||
case 27:
|
case 27:
|
||||||
if ((0xfbffd4f8ffffd9ffL & l) == 0L)
|
if ((0xfbfffcf8ffffd9ffL & l) == 0L)
|
||||||
break;
|
break;
|
||||||
if (kind > 21)
|
if (kind > 21)
|
||||||
kind = 21;
|
kind = 21;
|
||||||
|
|
Loading…
Reference in New Issue