Multi Word Synonyms

Hi :slight_smile:

my synonyms file has currently only explicit and equivalent synonyms with only one word.

Can elasticsearch handle multi word synonyms?
E.g.: this is a sentence, another one, something else => fancy stuff, such great synonyms, much difficult

I found some documentations but these dont include synonyms in files and i just wanted to be sure before i am going to edit the file.

Best Regards :raised_hand_with_fingers_splayed:

Hi Ahmet,

good question. Multi-token synonyms are supported but were always a bit tricky. See for quite a good overview. Nowerdays I think using Synonym Graph Token Filter at search time is the thing to start with. This also has some documentation about the suported file format.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.