mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 17:38:44 +00:00
Fix docs stating that index.mapper.dynamic can be set for all nodes in the elasticsearch.yml file. This is not supported in 5.x (index settings cannot be set at the cluster level) and should be replace with a template for all indices.
This commit is contained in:
parent
6ed83ce36a
commit
4bee565535
@ -40,15 +40,32 @@ automatically or explicitly.
|
||||
[float]
|
||||
=== Disabling automatic type creation
|
||||
|
||||
Automatic type creation can be disabled by setting the `index.mapper.dynamic`
|
||||
setting to `false`, either by setting the default value in the
|
||||
`config/elasticsearch.yml` file, or per-index as an index setting:
|
||||
Automatic type creation can be disabled per-index by setting the `index.mapper.dynamic`
|
||||
setting to `false` in the index settings:
|
||||
|
||||
[source,js]
|
||||
--------------------------------------------------
|
||||
PUT data/_settings <1>
|
||||
PUT data/_settings
|
||||
{
|
||||
"index.mapper.dynamic":false
|
||||
"index.mapper.dynamic":false <1>
|
||||
}
|
||||
--------------------------------------------------
|
||||
// CONSOLE
|
||||
// TEST[continued]
|
||||
|
||||
<1> Disable automatic type creation for the index named "data".
|
||||
|
||||
Automatic type creation can also be disabled for all indices by setting an index template:
|
||||
|
||||
[source,js]
|
||||
--------------------------------------------------
|
||||
PUT _template/template_all
|
||||
{
|
||||
"template": "*",
|
||||
"order":0,
|
||||
"settings": {
|
||||
"index.mapper.dynamic": false <1>
|
||||
}
|
||||
}
|
||||
--------------------------------------------------
|
||||
// CONSOLE
|
||||
|
Loading…
x
Reference in New Issue
Block a user