From 8238388badd616d9f5fbab0fbee1cb46de92ea02 Mon Sep 17 00:00:00 2001 From: Colin Goodheart-Smithe Date: Thu, 11 Sep 2014 15:03:47 +0100 Subject: [PATCH] [DOCS] clarification of breaking changes to 1.4 due to GET index API --- docs/reference/indices/get-mapping.asciidoc | 2 ++ docs/reference/migration/migrate_1_x.asciidoc | 13 ++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/reference/indices/get-mapping.asciidoc b/docs/reference/indices/get-mapping.asciidoc index 317a708f13a..452ea45edff 100644 --- a/docs/reference/indices/get-mapping.asciidoc +++ b/docs/reference/indices/get-mapping.asciidoc @@ -29,6 +29,8 @@ curl -XGET 'http://localhost:9200/_all/_mapping/tweet,book' If you want to get mappings of all indices and types then the following two examples are equivalent: +coming[1.4.0,The API will always include a `mappings` section, even if there aren't any mappings. Previous versions would not return the `mappings` section] + [source,js] -------------------------------------------------- curl -XGET 'http://localhost:9200/_all/_mapping' diff --git a/docs/reference/migration/migrate_1_x.asciidoc b/docs/reference/migration/migrate_1_x.asciidoc index 72378087e62..400898ffa9b 100644 --- a/docs/reference/migration/migrate_1_x.asciidoc +++ b/docs/reference/migration/migrate_1_x.asciidoc @@ -48,7 +48,7 @@ curl -XGET 'http://localhost:9200/_all/_warmers' curl -XGET 'http://localhost:9200/_warmers' -------------------------------------------------- -Similarly, the <> will return a section for `aliases` even if there are +The <> will return a section for `aliases` even if there are no aliases. This ensures that the following two examples are equivalent: [source,js] @@ -58,3 +58,14 @@ curl -XGET 'http://localhost:9200/_all/_aliases' curl -XGET 'http://localhost:9200/_aliases' -------------------------------------------------- +The <> will return a section for `mappings` even if there are +no mappings. This ensures that the following two examples are equivalent: + +[source,js] +-------------------------------------------------- +curl -XGET 'http://localhost:9200/_all/_mappings' + +curl -XGET 'http://localhost:9200/_mappings' +-------------------------------------------------- + +