1、更新索引设置:将副本减至0,修改索引分析器为ik_max_word和检索分词器为ik_smart

2、需要先将索引关闭,然后再PUT setings

POST user/_close

PUT user/_settings
{
  "number_of_replicas": 0,
  "index":{
    "analysis.analyzer.default.type":"ik_max_word",
    "analysis.search_analyzer.default.type":"ik_smart"
  }
}
POST user/_open

 

相关文章:

  • 2021-07-10
  • 2021-10-29
  • 2022-12-23
  • 2021-12-13
  • 2021-12-15
  • 2021-08-05
  • 2021-05-14
猜你喜欢
  • 2021-07-24
  • 2021-08-13
  • 2021-08-04
  • 2022-12-23
  • 2022-12-23
  • 2021-07-05
相关资源
相似解决方案