我通过执行以下命令为 elsticsearch 中的索引添加了一个包含标签。
curl -XPUT http://localhost:9200/my_index/_settings -d '{"index.routing.allocation.include.tag" : "tag1"}'
我没有看到任何设置后取消设置/删除标签的命令。 我可以将标签设置为空,但我想删除标签属性本身。
我们是否有任何选项可以删除此标签,目前它是这样的
{
"index": {
"creation_date": "1449858605286",
"routing": {
"allocation": {
"include": {
"tag": ""
}
}
}
}
最佳答案
最新的 Elasticsearch 版本(5.0+,如果我没记错的话)允许您unset configurations by setting them to null
,例如:
PUT /_cluster/settings
{
"transient" : {
"indices.recovery.max_bytes_per_sec" : null
}
}
关于elasticsearch - 如何删除elasticsearch中的index.routing.allocation.include.tag,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35110722/