lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: Wildcard Prefix
Date Wed, 16 Jun 2004 07:43:30 GMT
On Jun 15, 2004, at 8:17 PM, Nalin Mittal wrote:
> Does anyone have some sample code that implements the Wildcard Prefix
> functionality so that a search like ‘*ucene’ could be executed?

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.

	Erik



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