How to create synonyms for an elasticsearch index with more than 5000 documents
10:42 23 Feb 2026

so I set up an elasticsearch project and I used a IMDB API to get somewhere around 5000 different movies. Now I've been trying to use the synonyms API and create these... well synonyms, but I've run into the issue that there are 5000 different movies... which is A LOT of synonyms.

My question is: Is it possible to "generate" synonyms instead of manually writing them?

elasticsearch