By using AWS re:Post, you agree to the Terms of Use

Do i need to re associate if the file has updated for Analyzers in Opensearch

0

I'm using elasticsearch 7.7.

  • I have stopwords which is in s3 to remove while i am searching.
  • I have created analyzer for that

setting is below

{
  "settings": {
    "index": {
      "analysis": {
        "analyzer": {
          "my_stop_analyzer5": {
            "type": "custom",
            "tokenizer": "standard",
            "filter": "my_filter5"
          }
        },
        "filter": {
          "my_filter5": {
            "type": "stop",
            "stopwords_path": "analyzers/<your analyzer ID>",
            "updateable": true
          }
        }
      }
    }
  },
  "mappings": {
    "properties": {
      "description": {
        "type": "text",
        "analyzer": "standard",
        "search_analyzer": "my_stop_analyzer5"
      }
    }
  }
}
  • I am using python api to connect Cluster and update the settings. python code is below
es.indices.close("indexname")
es.indices.put_settings(index="indexname", body=settings, id=1234) #id is some id required for below version 7.8 
es.indices.open("indexname")
  • I have updated the s3 file of stopwords
  • Do i need to do dissociate and associate again for this or any extra steps should i do if only i have updated the stopword file in s3?

https://docs.aws.amazon.com/opensearch-service/latest/developerguide/custom-packages.html

asked 3 months ago19 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions