problem becomes in feeding the stemmed words, and this is what half of the struggle is.
ideally i'd want to use regular words (in either single or plural form, not both) to resolve to a synonym or synonyms
but if i use stemmer before synonym, in analyzer chain, ie:
"my_synonym": {
"type": "custom",
"char_filter": "html_strip",
"filter": [
"apostrophe",
"standard",
"elision",
"asciifolding",
"lowercase",
"stop",
"length",
"minimal_filter",
"synonym"
],
then words like:
clothes, pants => clothing
will not resolve to anything because stemmer will conver word clothes to clothe and i wasn't able to figure out an easy way to build this type of synonym dicionary, as every word is stemmed and same exceptions are needed.
ie:
flats => shoes for women
but with stemming it turns into flat and i cannot logically map word flat to women's shoes
any further suggestions ?