lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 12137] New: - Can '*' or '?' symbol be used as the first character of a search?
Date Wed, 28 Aug 2002 19:52:01 GMT
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: lucene-dev@jakarta.apache.org
        ReportedBy: tlai@leversoft.com


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:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>


Mime
View raw message