Thanks, Erik. Using the WildcardQuery worked fine, and was much simpler.

-----Original Message-----
From: Erik Hatcher [mailto:[EMAIL PROTECTED] 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to