You can go to town by subclassing QueryParser and overriding
getWildcardQuery - so sure, this is possible. But it really is a
custom feature that shouldn't belong in the core QueryParser, I'd
argue.
Erik
On Jun 10, 2004, at 8:10 PM, [EMAIL PROTECTED] wrote:
Hey Otis,
I saw this FAQ :
http://www.jguru.com/faq/view.jsp?EID=538312
Is it possible to turn on stemming for wildcard searches. In my example
below, if the document contains "create" then I want the query
"create*"
to return this document. So, in my case it is better to have the
stemmed
query "creat*" which returns the document rather than the unstemmed
query "create*" which does not return the document.
Regards,
Michael
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 09, 2004 4:48 PM
To: [EMAIL PROTECTED]
Subject: Re: Wildcards and complete words
I believe I covered this in a Lucene FAQ entry at jGuru.
Otis
--- [EMAIL PROTECTED] wrote:
Hi,
I noticed that if I append a * to the words, create, created,
creating,
creates, etc. then the search does not return the expected document.
But
if I use creat* then the search does return the expected document.
I would like to be able to use the complete words and append a
wildcard
to the end. Any help would be greatly appreciated. Thanks!!!
Regards,
Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]