Docs: Fixed code callout error.
This commit is contained in:
parent
e9f2548ee0
commit
084b35c08b
|
@ -71,11 +71,12 @@ POST my_alias/_rollover/my_new_index_name
|
||||||
[float]
|
[float]
|
||||||
=== Defining the new index
|
=== Defining the new index
|
||||||
|
|
||||||
The settings, mappings, and aliases for the new index will be taken from any
|
The settings, mappings, and aliases for the new index are taken from any
|
||||||
matching <<indices-templates,index templates>>. Additionally, the body of the
|
matching <<indices-templates,index templates>>. Additionally, you can specify
|
||||||
request accepts `settings`, `mappings`, and `aliases` just like the
|
`settings`, `mappings`, and `aliases` in the body of the request, just like the
|
||||||
<<indices-create-index,create index>> API, which will override any values
|
<<indices-create-index,create index>> API. Values specified in the request
|
||||||
set in matching index templates:
|
override any values set in matching index templates. For example, the following
|
||||||
|
`rollover` request overrides the `index.number_of_shards` setting:
|
||||||
|
|
||||||
[source,js]
|
[source,js]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
|
@ -92,17 +93,15 @@ POST logs_write/_rollover
|
||||||
"max_age": "7d",
|
"max_age": "7d",
|
||||||
"max_docs": 1000
|
"max_docs": 1000
|
||||||
},
|
},
|
||||||
"settings": { <1>
|
"settings": {
|
||||||
"index.number_of_shards": 2 <1>
|
"index.number_of_shards": 2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// CONSOLE
|
// CONSOLE
|
||||||
<1> Set settings to override matching index template, `mappings` and `aliases`
|
|
||||||
can also be provided.
|
|
||||||
|
|
||||||
[float]
|
[float]
|
||||||
=== Dry run
|
=== Dry run
|
||||||
|
|
||||||
The rollover API supports `dry_run` mode, where request conditions can be
|
The rollover API supports `dry_run` mode, where request conditions can be
|
||||||
checked without performing the actual rollover:
|
checked without performing the actual rollover:
|
||||||
|
|
Loading…
Reference in New Issue