|
@@ -76,11 +76,35 @@ factor of `2` or `3`. In other words, it could be split as follows:
|
|
|
* `5` -> `15` -> `30` (split by 3, then by 2)
|
|
|
* `5` -> `30` (split by 6)
|
|
|
|
|
|
-While you can set the `index.number_of_routing_shards` setting explicitly at
|
|
|
-index creation time, the default value depends upon the number of primary
|
|
|
-shards in the original index. The default is designed to allow you to split
|
|
|
-by factors of 2 up to a maximum of 1024 shards. However, the original number
|
|
|
-of primary shards must taken into account. For instance, an index created
|
|
|
+`index.number_of_routing_shards` is a <<index-modules-settings,static index
|
|
|
+setting>>. You can only set `index.number_of_routing_shards` at index creation
|
|
|
+time or on a <<indices-open-close,closed index>>.
|
|
|
+
|
|
|
+.*Index creation example*
|
|
|
+[%collapsible]
|
|
|
+====
|
|
|
+The following <<indices-create-index,create index API>> creates the
|
|
|
+`my-index-000001` index with an `index.number_of_routing_shards` setting of `30`.
|
|
|
+
|
|
|
+[source,console]
|
|
|
+----
|
|
|
+PUT /my-index-000001
|
|
|
+{
|
|
|
+ "settings": {
|
|
|
+ "index": {
|
|
|
+ "number_of_routing_shards": 30
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+----
|
|
|
+// TEST[continued]
|
|
|
+====
|
|
|
+
|
|
|
+The `index.number_of_routing_shards` setting's default value depends
|
|
|
+on the number of primary shards in the original index.
|
|
|
+The default is designed to allow you to split
|
|
|
+by factors of 2 up to a maximum of 1024 shards. However, the original number
|
|
|
+of primary shards must taken into account. For instance, an index created
|
|
|
with 5 primary shards could be split into 10, 20, 40, 80, 160, 320, or a
|
|
|
maximum of 640 shards (with a single split action or multiple split actions).
|
|
|
|