Stemming is imprefect since it's algorithmic. If you look at the admin/analysis page you can see the effects of the various steps (check the verbose box)...
rainy stems to raini so it's not a match for rain. There will always be anomalies like this, you either have to handle them with exceptions (François' suggestion for synonyms might work) or just live with it. Best Erick 2011/11/29 François Schiettecatte <fschietteca...@gmail.com>: > You might try the snowball stemmer too, I am not sure how closely that will > fit your requirements though. > > Alternatively you could use synonyms. > > François > > On Nov 29, 2011, at 1:08 AM, mina wrote: > >> thank you for your answer.i read it and i use this filter in my schema.xml in >> solr: >> >> <filter class="solr.PorterStemFilterFactory"/> >> >> but this filter doesn't understand all words with their suffix and prefix. >> this means when i search 'rain' solr doesn't show me any document that have >> 'rainy'. >> >> >> -- >> View this message in context: >> http://lucene.472066.n3.nabble.com/how-index-words-with-their-perfix-in-solr-tp3542300p3544319.html >> Sent from the Solr - User mailing list archive at Nabble.com. >