(from github.com/MajidSafari)
Hi again
i tried to add Synonyms in dictionary, for single part words like “test=>exam” it works fine but for more than one part words with spaces like “online test=>exam” it doesn’t work.
the line for this rule in the “synonym.txt” is:
online exam,online test=>exam
(from github.com/marevol)
If you use standard tokenizer and synonym token filter, standard tokenizer is divides “online test” into online and test. So, “online test” does not match in synonym token filter.
I think it works if using ngram_synonym tokenizer . https://github.com/codelibs/elasticsearch-analysis-synonym