lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Goetz <br...@quiotix.com>
Subject Re: Wildcard Prefix
Date Wed, 16 Jun 2004 08:52:34 GMT
> WildcardQuery (via the API, not QueryParser) allows '*ucene' syntax.
>
> Why doesn't QueryParser allow this?  Because it is a very inefficient 
> and potentially performance killing type of query.  Lucene must 
> navigate *every* term in the index in order to find what matches. 


More specifically, QueryParser is often used in applications where the 
query string will have been typed into a web form by a user.  You don't 
want a naive user (or a typo) to take down your application.)  Queries 
constructed by by the query API are less likely to be "accidental."



---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message