Posted on 17/05/2021 09:05:58
Hi Aki
Yes, synonyms can take of that. Synonyms is a bit tricky - see some of the threads with Nuno on this.
The configuration of the Synonyms look like this:
<?xml version="1.0" encoding="utf-8" ?>
<SynonymAnalyzer>
<TokenizerType>
LowerCase
</TokenizerType>
<StemmerName>
English
</StemmerName>
<StopWords>
</StopWords>
</SynonymAnalyzer>
Stemming is the plural handling. So this configuration will take care of english stemming, which is your example. Different languages have different stemming rules, and might need different stemmers. But Lucene only has a limited set of stemmers for lucene.net in this version...
If you have other languages, you can also use synonyms for plurals - but that would be a long list.
BR Nicolai