lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <>
Subject Re: [Bug 12137] New: - Can '*' or '?' symbol be used as the first character of a search?
Date Thu, 29 Aug 2002 16:48:49 GMT
Armbrust, Daniel C. wrote:
> For those of us app developers that need to support a wild card query that can have the
wild cards anywhere, I (as a lazy app developer) would like to be able to plug in a different
query parser (that has at least been checked by and is hopefully supported as a part of lucene
by those that know the lucene internals for validity) and will hopefully be aware that this
parser will have worse performance on queries that have leading wildcards because I was warned
when I downloaded it, or something along those lines.  Then I as a developer will take measures
as appropriate to make sure the users don't create a DOS attack on my system if this performance
hit is significant on my index.
> I understand that this probably makes you cringe, however as a lucene developer, since
now you would have 2 parsers to support.  

Maybe the current query parser could be modified to accept a parameter 
that determines the minimum number of characters that must occur in a 
term before a wildcard.  Its default could be one or two, but developers 
could set it to zero if they want.


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message