[DOCS] clarification of breaking changes to 1.4 due to GET index API

This commit is contained in:
Colin Goodheart-Smithe 2014-09-11 15:03:47 +01:00
parent f8e93fa2aa
commit 8238388bad
2 changed files with 14 additions and 1 deletions

View File

@ -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 If you want to get mappings of all indices and types then the following
two examples are equivalent: 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] [source,js]
-------------------------------------------------- --------------------------------------------------
curl -XGET 'http://localhost:9200/_all/_mapping' curl -XGET 'http://localhost:9200/_all/_mapping'

View File

@ -48,7 +48,7 @@ curl -XGET 'http://localhost:9200/_all/_warmers'
curl -XGET 'http://localhost:9200/_warmers' curl -XGET 'http://localhost:9200/_warmers'
-------------------------------------------------- --------------------------------------------------
Similarly, the <<alias-retrieving, get alias api>> will return a section for `aliases` even if there are The <<alias-retrieving, get alias api>> will return a section for `aliases` even if there are
no aliases. This ensures that the following two examples are equivalent: no aliases. This ensures that the following two examples are equivalent:
[source,js] [source,js]
@ -58,3 +58,14 @@ curl -XGET 'http://localhost:9200/_all/_aliases'
curl -XGET 'http://localhost:9200/_aliases' curl -XGET 'http://localhost:9200/_aliases'
-------------------------------------------------- --------------------------------------------------
The <<indices-get-mapping, get mapping api>> 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'
--------------------------------------------------