mirror of https://github.com/apache/lucene.git
Improve the expression that's suggested in a comment on how to
use "*" and "?" as first characters on wildcard queries. Thanks to Peter Norrhall. git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@328754 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1d0b4a23d5
commit
7fa0cf9587
|
@ -745,13 +745,14 @@ PARSER_END(QueryParser)
|
||||||
}
|
}
|
||||||
|
|
||||||
// OG: to support prefix queries:
|
// OG: to support prefix queries:
|
||||||
// http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12137
|
// http://issues.apache.org/bugzilla/show_bug.cgi?id=12137
|
||||||
// Change from:
|
// Change from:
|
||||||
|
//
|
||||||
// | <WILDTERM: <_TERM_START_CHAR>
|
// | <WILDTERM: <_TERM_START_CHAR>
|
||||||
// (<_TERM_CHAR> | ( [ "*", "?" ] ))* >
|
// (<_TERM_CHAR> | ( [ "*", "?" ] ))* >
|
||||||
// To:
|
// To:
|
||||||
//
|
//
|
||||||
// | <WILDTERM: (<_TERM_CHAR> | ( [ "*", "?" ] ))* >
|
// (<_TERM_START_CHAR> | [ "*", "?" ]) (<_TERM_CHAR> | ( [ "*", "?" ] ))* >
|
||||||
|
|
||||||
<DEFAULT> TOKEN : {
|
<DEFAULT> TOKEN : {
|
||||||
<AND: ("AND" | "&&") >
|
<AND: ("AND" | "&&") >
|
||||||
|
|
Loading…
Reference in New Issue