lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <>
Subject Re: Wildcard prefix
Date Mon, 30 Jun 2003 17:28:53 GMT
Pete Lewis wrote:
> The only real functionality that Lucene lacks that is supplied by other search engines
is the wildcard prefix.

The most efficient way to do this is to, when indexing, add text to two 
fields, one the normal field, and another using an analyzer that 
reverses the text of each token.  Then use prefix searches of the 
reversed field to efficiently implement prefix wildcards.  This doubles 
the size of the index and slows indexing, but does the trick.


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

View raw message