Selaa lähdekoodia

Add note to docs on duplicate keys in config

This commit adds a note to the migration docs that duplicate keys in the
configuration file are no longer permitted.

Relates #24022
Jason Tedor 8 vuotta sitten
vanhempi
commit
669fcd05e6
1 muutettua tiedostoa jossa 26 lisäystä ja 0 poistoa
  1. 26 0
      docs/reference/migration/migrate_6_0/settings.asciidoc

+ 26 - 0
docs/reference/migration/migrate_6_0/settings.asciidoc

@@ -1,6 +1,32 @@
 [[breaking_60_settings_changes]]
 === Settings changes
 
+==== Duplicate keys in configuration file
+
+In previous versions of Elasticsearch, the configuration file was allowed to
+contain duplicate keys. For example:
+
+[source,yaml]
+--------------------------------------------------
+node:
+  name: my-node
+
+node
+  attr:
+    rack: my-rack
+--------------------------------------------------
+
+In Elasticsearch 6.0.0, this is no longer permitted. Instead, this must be
+specified in a single key as:
+
+[source,yaml]
+--------------------------------------------------
+node:
+  name: my-node
+  attr:
+    rack: my-rack
+--------------------------------------------------
+
 ==== Coercion of boolean settings
 
 Previously, Elasticsearch recognized the strings `true`, `false`, `on`, `off`, `yes`, `no`, `0`, `1` as booleans. Elasticsearch 6.0