Excellent! Can you consider contributing this back? This is not an unheard-of request.....
Erick On Fri, Oct 14, 2011 at 5:45 PM, Victor <scanner...@yahoo.co.uk> wrote: > I've spent today writing my own SynonymFilter and SynonymFilterFactory. And > it works! > > I've followed Erick's advice and pre- and postfixed all the words that I > want to stem with a @. So, if I want to stem the word car, I injest it in > the query as @car@. > > My adapted synonymfilter recognizes the pre/postfixing, removes the @ > characters and continues as usual (which means the synonym filter will do > what it is supposed to be doing). If no "stemming tags" are found, it aborts > the synonym lookup part of the process for that token an returns > immediately. > > So: > car --> car > cars --> cars > @car@ --> car and cars > > Mission accomplished, no extra storage needed, current index can stay as it > is, end user can switch between stemming and no stemming when he/she wants > too. > > I think I saved a lot of money today. > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Multiple-search-analyzers-on-the-same-field-type-possible-tp3417898p3422060.html > Sent from the Solr - User mailing list archive at Nabble.com. >