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: Proximity searches and Porter stemming - ??
Date Tue, 27 Dec 2005 18:56:58 GMT

On Dec 27, 2005, at 1:45 PM, Dmitry Goldenberg wrote:
> I tried using Porter stemming in our application and it worked  
> great except it broke the proximity searches.  Is there any way at  
> all that these two pieces of functionality could coexist peacefully?
>
> I do not see any reason why they should not.  It seems to me that  
> proximity query terms should be stemmed by the engine, then the  
> query executed.  Personally, I would not care much if the following  
> two proximity queries would bring back the same results:
>
> "character encoding"~3
> and
> "characters encode"~3
>
> I'd much rather they both returned the same results than no results  
> at all, the latter being the case I've observed.
>
> Any recommendations?

Are you using the same Analyzer with QueryParser as you are with  
IndexWriter?  What does the generated Query.toString yield?

This absolutely works provided the analyzers jive between indexing  
and searching.

	Erik


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


Mime
View raw message