DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12137>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12137

Can '*' or '?' symbol be used as the first character of a search?

           Summary: Can '*' or '?' symbol be used as the first character of
                    a search?
           Product: Lucene
           Version: 1.2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: QueryParser
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Do get me wrong, I did read the Parser Syntax, and understand that:
"Note: You cannot use a * or ? symbol as the first character of a search."  
However, It would have been nice for this feature.  I made the following 
changes to QueryParser.jj, and it seems work fine.  I am not sure if there is 
any side effect though.  Can someone verify this?

Change from:

| <WILDTERM:  <_TERM_START_CHAR> 
              (<_TERM_CHAR> | ( [ "*", "?" ] ))* >


To:

| <WILDTERM:  (<_TERM_CHAR> | ( [ "*", "?" ] ))* >

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to