lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Goetz <br...@quiotix.com>
Subject Re: [Bug 12137] New: - Can '*' or '?' symbol be used as the first character of a search?
Date Wed, 28 Aug 2002 20:03:15 GMT
On Wed, Aug 28, 2002 at 07:52:01PM -0000, bugzilla@apache.org wrote:
> 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?

I think this is a bad idea.  

First of all, the query parser is a CONVENIENCE, not the only way to
build query objects.  If the query parser language is too restrictive,
then build the query objects programmatically.  Its not that hard.

There were reasons why the query language was designed this way.  If
you think that's an error, first you need to lobby for your position
to change the design, THEN we can think about changing the parser.

Parser are tricky.  Small changes can have big, unexpected effects.
Lets make sure we want to do this first (which I think we don't), and
then we can look at the implementation. 

--
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