[参考价值在于2.X以上ES定义分析器] es 5.4.2 在已有索引上自定义词性分析器,必须要先关掉索引吗,能不关掉索引的情况下,新增自定义分析器吗 - Elastic 中文社区

PUT doctest/_settings
{
"index": {
"analysis": {
"analyzer": {
"comma": {
"type": "pattern",
"pattern": ","
}
}
}
}
}

提示{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Can't update non dynamic settings [[index.analysis.analyzer.comma.pattern, index.analysis.analyzer.comma.type]] for open indices [[doctest/k1ydiwt1QbiPpZ-d-1pZmw]]"
}
],
"type": "illegal_argument_exception",
"reason": "Can't update non dynamic settings [[index.analysis.analyzer.comma.pattern, index.analysis.analyzer.comma.type]] for open indices [[doctest/k1ydiwt1QbiPpZ-d-1pZmw]]"
},
"status": 400
}


Original url: Access
Created at: 2019-05-16 10:15:21
Category: default
Tags: none

请先后发表评论
  • 最新评论
  • 总共0条评论