lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Pryor <BPr...@widen.com>
Subject RE: Suffix query
Date Thu, 24 Jun 2004 18:42:26 GMT
Thanks, Erik. Using the WildcardQuery worked fine, and was much simpler.

-----Original Message-----
From: Erik Hatcher [mailto:erik@ehatchersolutions.com] 
Sent: Thursday, June 24, 2004 11:10 AM
To: Lucene Developers List
Subject: Re: Suffix query

WildcardQuery supports suffix (*something) queries when used through the API
(QueryParser does not allow asterisks at the beginning).  So I don't think
what you've done is necessary... just use a WildcardQuery with a leading
asterisk.

There are alternative approaches to this by changing how you index to
accommodate suffix queries (reverse what goes in, reverse it and do a prefix
query during querying).

	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