The transformation you talk about is called baseform reduction. Most efficient approach is dictionary-based. Stemming is mostly restricted to algorithmic approaches which do not cover all cases.
You could try to use or setup a new dictionary in my elasticsearch-baseform-plugin https://github.com/jprante/elasticsearch-analysis-baseform Jörg On Fri, Apr 4, 2014 at 10:35 PM, Raja Akhtar <[email protected]> wrote: > I am fairly new to Elasticsearch and it's worked brilliantly so far. > > I'm stuck in this issue of singular and plural terms, and have done quite > a bit of research on it too.... and everyone's talking "stemmers", > "snowball", "kstem" etc... > > From what I understand... if I have stemmer analyzer on a term, I would > have something like: > > term => stem > ---------------------------- > "knock" => "knock" > "knocker" => "knock" > "knocked" => "knock" > "knocking" => "knock" > > Therefore, if someone searched for "knock", they would see results with > "knocked", "knocking" etc... > Now I can achieve that with nGrams anyway. > > What I'm trying to is the opposite. > > I want someone to be able to type "knocking"... and still find "knocker", > "knocked" etc... > > In my particular use case, I want someone to be able to type "fridges" and > still find "fridge" > > How do I achieve this? Can I attached some sort of a stemmer on to the > search_analyser? > Any help will be great. > > -- > You received this message because you are subscribed to the Google Groups > "elasticsearch" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/faa3a880-ed7f-4709-8e00-e8a63278af01%40googlegroups.com<https://groups.google.com/d/msgid/elasticsearch/faa3a880-ed7f-4709-8e00-e8a63278af01%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGjT7iaypR8dqhU%3DB%2B0ApPqMDYNNkSKFwP%3D346Y3WmLcA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
