lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Nikander <rob.nikan...@gmail.com>
Subject Re: stemming irregular plurals?
Date Tue, 29 Jul 2014 14:28:05 GMT
Mmm. I don’t see a way to construct one, except passing an FST, which isn’t exactly a map.
I look at the FST javadoc; it’s a rabbit hole.

Rob

On Jul 29, 2014, at 10:14 AM, Robert Muir <rcmuir@gmail.com> wrote:

> You can put this thing before your stemmer, with a custom map of exceptions:
> 
> http://lucene.apache.org/core/4_9_0/analyzers-common/org/apache/lucene/analysis/miscellaneous/StemmerOverrideFilter.html
> 
> On Tue, Jul 29, 2014 at 10:03 AM, Robert Nikander
> <rob.nikander@gmail.com> wrote:
>> Hi,
>> 
>> I created an Analyzer with a PorterStemFilter, and I’m searching some test documents.
 Normal plurals work; searching for “zebra” finds text with “zebras”. But searching
for “goose” doesn’t find “geese”.  Is that expected?  Does it give up on irregular
English?  Is there a way to make that work, or a reason that it can’t?
>> 
>> thanks,
>> Rob
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 


---------------------------------------------------------------------
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