elasticsearch/docs/reference
Simon Willnauer 7f16a1d9a7 Improve upgrade experience of node level index settings
In 5.0 we don't allow index settings to be specified on the node level ie.
in yaml files or via commandline argument. This can cause problems during
upgrade if this was used extensively. For instance if analyzers where
specified on a node level this might cause the index to be closed when
imported (see #17187). In such a case all indices relying on this
must be updated via `PUT /${index}/_settings`. Yet, this API has slightly
different semantics since it overrides existing settings. To make this less
painful this change adds a `preserve_existing` parameter on that API to ensure
we have the same semantics as if the setting was applied on the node level.

This change also adds a better error message and a change to the migration guide
to ensure upgrades are smooth if index settings are specified on the node level.

If a index setting is detected this change fails the node startup and prints a message
like this:
```
*************************************************************************************
Found index level settings on node level configuration.

Since elasticsearch 5.x index level settings can NOT be set on the nodes
configuration like the elasticsearch.yaml, in system properties or command line
arguments.In order to upgrade all indices the settings must be updated via the
/${index}/_settings API. Unless all settings are dynamic all indices must be closed
in order to apply the upgradeIndices created in the future should use index templates
to set default values.

Please ensure all required values are updated on all indices by executing:

curl -XPUT 'http://localhost:9200/_all/_settings?preserve_existing=true' -d '{
  "index.number_of_shards" : "1",
  "index.query.default_field" : "main_field",
  "index.translog.durability" : "async",
  "index.ttl.disable_purge" : "true"
}'
*************************************************************************************
```
2016-03-21 20:12:18 +01:00
..
aggregations Updated link to Joda time zones 2016-03-14 12:24:58 +01:00
analysis Docs: Corrected behaviour of max_token_length in standard tokenizer 2016-03-18 10:58:16 +01:00
cat
cluster
docs Docs: Fixed bad asciidoc link 2016-03-18 13:26:01 +01:00
images
index-modules
indices
ingest Docs: Added the ingest node to the modules/nodes page 2016-03-15 19:03:18 +01:00
mapping
migration Improve upgrade experience of node level index settings 2016-03-21 20:12:18 +01:00
modules Clarify how `-Djava.security.policy=someURL` must be passed 2016-03-17 14:13:19 +01:00
query-dsl percolator: Replace percolate api with the new percolator query 2016-03-21 12:21:50 +01:00
release-notes Docs: Added 5.0.0-alpha1 release notes 2016-03-18 14:51:49 +01:00
search percolator: Replace percolate api with the new percolator query 2016-03-21 12:21:50 +01:00
setup
tasks
testing
aggregations.asciidoc
analysis.asciidoc
api-conventions.asciidoc
cat.asciidoc
cluster.asciidoc
docs.asciidoc Docs: Display reindex/update by query API and fix build doc issue 2016-03-18 10:44:16 +01:00
getting-started.asciidoc
glossary.asciidoc
index-modules.asciidoc
index.asciidoc Docs: Build release notes 2016-03-18 15:04:49 +01:00
indices.asciidoc
ingest.asciidoc Docs: Added the ingest node to the modules/nodes page 2016-03-15 19:03:18 +01:00
mapping.asciidoc
modules.asciidoc
query-dsl.asciidoc
redirects.asciidoc
release-notes.asciidoc Docs: Added 5.0.0-alpha1 release notes 2016-03-18 14:51:49 +01:00
search.asciidoc
setup.asciidoc
testing.asciidoc