Configuring Synonyms.txt in AWS hosted elastic search

I am trying to upload sysnonyms.txt in AWS hosted elastic search, but I couldn't find any feasible way to do that. All I have tried is the following.

I am not supposed to use inline sysnonym, since i have a huge list of synonmys. So I tried to use below settings to uplaod synonyms.txt to AWS hosted elastic search,

 "settings": {
            "analysis": {
                "filter": {
                   "synonyms_filter" : {
                        "type" : "synonym",
                       "synonyms_path" : "https://test-bucket.s3.amazonaws.com/synonyms.txt"
                    }
                    },
                    "analyzer": {
                    "synonyms_analyzer" : {
                        "tokenizer" : "whitespace",
                        "type": "custom",
                        "filter" : ["lowercase","synonyms_filter"]
                    }
                    }
                }

when I use above settings to create index from Kibana(VPC access), I am getting below exception.

{"error":{"root_cause":[{"type":"remote_transport_exception","reason":"[0jc0TeJ][x.x.x.x:9300][indices:admin/create]"}],"type":"illegal_argument_exception","reason":"IOException while reading synonyms_path_path:  (No such file or directory)"}},"status":400}

Since my Elastic search is hosted my AWS, I cant get node details or etc folder details to upload my file.

Any suggestion on the approach or how to upload file to AWS ES?

This looks like a limitation in Elasticsearch AWS so you should contact their support since it is completely managed by Amazon and not us.
For your information we also have an official hosted solution called Cloud where uploading a file is accepted: https://www.elastic.co/fr/cloud
You should try :wink:

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