OpenSearch/docs
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
..
community-clients Add Scala based elasticsearch-client 2016-02-03 15:47:34 -08:00
groovy-api Backs out early link fix. 2015-10-22 15:00:35 -07:00
java-api docs: fix link 2016-03-21 14:09:30 +01:00
perl Fix organization rename in all files in project 2016-03-03 12:04:13 -07:00
plugins Docs: Added redirect entries for multicast plugin and the cloud plugins 2016-03-16 12:31:00 +01:00
python [docs] Updating the Python client docxs 2015-11-30 16:50:08 +01:00
reference Improve upgrade experience of node level index settings 2016-03-21 20:12:18 +01:00
resiliency Fix organization rename in all files in project 2016-03-03 12:04:13 -07:00
ruby Fix organization rename in all files in project 2016-03-03 12:04:13 -07:00
README.asciidoc Docs: Updated docs/README.asciidoc to point to the new docs repo 2015-04-27 08:54:07 +02:00

README.asciidoc

The Elasticsearch docs are in AsciiDoc format and can be built using the Elasticsearch documentation build process

See: https://github.com/elastic/docs