I am writing a code to create elasticsearch indexes with the constraint that everything must be done through the elasticsearch REST APIs.
I am able to create the index, update the mapping and settings with the Java client but I am stuck on how to do the same with the synonyms file.
Is there a way to update synonyms via the elasticsearch REST API?