<p dir="auto">Today, you have two ways to define a list of synonyms:</p>
<ul dir="auto">
<li>within the index settings (mapping) which could cause a very big index metadata (so big cluster state - imagine daily indices)</li>
<li>on the file system itself but this is hard to maintain then</li>
</ul>
<p dir="auto">This feature request is about storing that document within an index and be able to retrieve it when the index is created/loaded.</p>
<p dir="auto">See also discussion on <a href="https://discuss.elastic.co/t/recommendation-for-large-synonym-file/42740/5" rel="nofollow">https://discuss.elastic.co/t/recommendation-for-large-synonym-file/42740/5</a></p>
<p dir="auto">I have a dictionary-based analyzer implementation, with the dictionary being loaded from the plugin jar. I want to allow the user to add their words to the dictionary by using a supplementary dictionary. And I want a flexible way of handling this custom list.</p>
<p dir="auto">Using the standard Settings implementation isn't a valid option since this is can be a list of many words, each word having some additional descriptors, so its not a string suitable for storing in settings.</p>
<p dir="auto">One possibility is to provide the analyzer with a path of some sort via settings, but to be able to run on the cloud using SaaS providers this is not a good option. Another option is to provide a download link, but again - I don't want my Analyzer downloading the internet on initialization, plus that may be a security breach.</p>
<p dir="auto">Instead, I'm interested in a way to leverage ES as a document store. Loading a document with this configuration seems optimal considering all options, but I'm not sure if it is supported at all. If it is - would love to hear how; otherwise, would love to see this added.</p>