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
