创建索引后,是否可以减少ElasticSearch搜索引擎中的分片数量?
我试过了 :
$ curl -XPUT 'localhost:9200/myindex/_settings' -d '{"index" : {"number_of_shards" : 3}}'
Run Code Online (Sandbox Code Playgroud)
但它给出了一个错误:
{"error":"ElasticsearchIllegalArgumentException[can't change the number of shards for an index]","status":400}
Run Code Online (Sandbox Code Playgroud)
不,这是不可能的。您可以更改很多内容 - 例如每个分片的副本数量或许多其他索引设置,但不能更改分片的数量。
欲了解更多信息 - 请查看此处 - http://www.elastic.co/guide/en/elasticsearch/reference/1.5/indices-update-settings.html
| 归档时间: |
|
| 查看次数: |
9053 次 |
| 最近记录: |