Elasticsearch: Updating Index Analysis

Elasticsearch 7 มิ.ย. 2019

It is also possible to define new analyzers for the index. But it is required to close the index first and open it after the changes are made.

For example if content analyzer hasn’t been defined on myindex yet you can use the following commands to add it:

POST /twitter/_close

PUT /twitter/_settings
{
  "analysis" : {
    "analyzer":{
      "content":{
        "type":"custom",
        "tokenizer":"whitespace"
      }
    }
  }
}

POST /twitter/_open

แท็ก

Onyx

Just a middle-aged programmer, Can do many things but not the most.