Mailing List Archive

cvs commit: jakarta-lucene/src/java/org/apache/lucene/queryParser QueryParser.jj
carlson 02/05/20 08:45:43

Modified: src/java/org/apache/lucene/queryParser QueryParser.jj
Log:
Changed QueryParser.jj to have "?" be a special character which allowed it to be used as a wildcard term. Updated TestWildcard unit test also. (Ralf Hettesheimer via carlson)

Revision Changes Path
1.17 +2 -4 jakarta-lucene/src/java/org/apache/lucene/queryParser/QueryParser.jj

Index: QueryParser.jj
===================================================================
RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/queryParser/QueryParser.jj,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- QueryParser.jj 6 May 2002 21:59:44 -0000 1.16
+++ QueryParser.jj 20 May 2002 15:45:43 -0000 1.17
@@ -274,9 +274,9 @@
<*> TOKEN : {
<#_NUM_CHAR: ["0"-"9"] >
| <#_ESCAPED_CHAR: "\\" [ "\\", "+", "-", "!", "(", ")", ":", "^",
- "[", "]", "\"", "{", "}", "~", "*" ] >
+ "[", "]", "\"", "{", "}", "~", "*", "?" ] >
| <#_TERM_START_CHAR: ( ~[. " ", "\t", "+", "-", "!", "(", ")", ":", "^",
- "[", "]", "\"", "{", "}", "~", "*" ]
+ "[", "]", "\"", "{", "}", "~", "*", "?" ]
| <_ESCAPED_CHAR> ) >
| <#_TERM_CHAR: ( <_TERM_START_CHAR> | <_ESCAPED_CHAR> ) >
| <#_WHITESPACE: ( " " | "\t" ) >
@@ -450,5 +450,3 @@
return q;
}
}
-
-




--
To unsubscribe, e-mail: <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>