lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: Wildcards and complete words
Date Fri, 11 Jun 2004 00:26:18 GMT
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, MMcGowan@primavera.com 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: otis_gospodnetic@yahoo.com [mailto:otis_gospodnetic@yahoo.com]
> Sent: Wednesday, June 09, 2004 4:48 PM
> To: lucene-user@jakarta.apache.org
> Subject: Re: Wildcards and complete words
>
> I believe I covered this in a Lucene FAQ entry at jGuru.
>
> Otis
>
> --- MMcGowan@primavera.com 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: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message