2016-09-08 13:36:31 -04:00
|
|
|
[[breaking_60_rest_changes]]
|
|
|
|
=== REST changes
|
|
|
|
|
|
|
|
==== Unquoted JSON
|
|
|
|
|
|
|
|
In previous versions of Elasticsearch, JSON documents were allowed to contain unquoted field names.
|
2016-10-10 16:51:47 -04:00
|
|
|
This feature was removed in the 5.x series, but a backwards-compatibility layer was added via the
|
|
|
|
system property `elasticsearch.json.allow_unquoted_field_names`. This backwards-compatibility layer
|
2016-09-08 13:36:31 -04:00
|
|
|
has been removed in Elasticsearch 6.0.0.
|
2016-09-30 16:42:45 -04:00
|
|
|
|
2016-12-19 03:29:47 -05:00
|
|
|
==== Duplicate Keys in JSON, CBOR, Yaml and Smile
|
2016-12-14 03:35:53 -05:00
|
|
|
|
2016-12-19 03:29:47 -05:00
|
|
|
In previous versions of Elasticsearch, documents were allowed to contain duplicate keys. Elasticsearch 6.0.0
|
|
|
|
enforces that all keys are unique. This applies to all content types: JSON, CBOR, Yaml and Smile.
|
2016-12-14 03:35:53 -05:00
|
|
|
|
2017-02-02 14:07:13 -05:00
|
|
|
==== Content-Type Auto-detection
|
|
|
|
|
|
|
|
In previous versions of Elasticsearch, having a proper Content-Type for the data in a request was not enforced.
|
|
|
|
Elasticsearch 6.0.0 enforces that all requests with a body must have a supported Content-Type and this type will
|
|
|
|
be used when parsing the data.
|
|
|
|
|
2017-02-17 14:45:41 -05:00
|
|
|
When using the `source` query string parameter, the `source_content_type` parameter must also be specified with
|
|
|
|
the media type of the source.
|
|
|
|
|
2017-01-19 01:59:18 -05:00
|
|
|
==== Boolean API parameters
|
|
|
|
|
|
|
|
All REST APIs parameters (both request parameters and JSON body) support providing boolean "false" as the
|
|
|
|
value `false` and boolean "true" as the value `true`. All other values will raise an error.
|
|
|
|
|
2016-09-30 16:42:45 -04:00
|
|
|
==== Analyze API changes
|
|
|
|
|
2016-10-05 06:13:33 -04:00
|
|
|
The deprecated request parameters and plain text in request body has been removed. Define parameters in request body.
|
2016-11-04 14:26:37 -04:00
|
|
|
|
|
|
|
==== Indices exists API
|
|
|
|
|
|
|
|
The `ignore_unavailable` and `allow_no_indices` options are no longer accepted
|
|
|
|
as they could cause undesired results when their values differed from their
|
|
|
|
defaults.
|
2016-11-30 07:34:46 -05:00
|
|
|
|
2017-01-16 12:46:12 -05:00
|
|
|
==== `timestamp` and `ttl` in index requests
|
2016-11-30 07:34:46 -05:00
|
|
|
|
|
|
|
`timestamp` and `ttl` are not accepted anymore as parameters of index/update
|
2017-01-16 12:46:12 -05:00
|
|
|
requests.
|
|
|
|
|
|
|
|
==== Refresh requests with one or more shard failures return HTTP 500 response instead of 200
|
|
|
|
|
|
|
|
Refresh requests that are broadcast to multiple shards that can have one or more
|
|
|
|
shards fail during the request now return a 500 response instead of a 200
|
|
|
|
response in the event there is at least one failure.
|
2017-03-28 10:44:57 -04:00
|
|
|
|
2017-05-05 05:08:55 -04:00
|
|
|
==== Delete by Query API requires an explicit query
|
2017-03-28 10:44:57 -04:00
|
|
|
|
|
|
|
In previous versions of Elasticsearch, delete by query requests without an explicit query
|
|
|
|
were accepted, match_all was used as the default query and all documents were deleted
|
|
|
|
as a result. From version 6.0.0, delete by query requests require an explicit query.
|
2017-05-09 10:33:52 -04:00
|
|
|
|
|
|
|
=== DELETE document calls now implicitly create the type
|
|
|
|
|
|
|
|
Running `DELETE index/type/id` now implicitly creates `type` with a default
|
|
|
|
mapping if it did not exist yet.
|
2017-05-16 16:14:07 -04:00
|
|
|
|
|
|
|
==== Indices information APIs
|
|
|
|
|
|
|
|
Previously it was possible to execute `GET /_aliases,_mappings` or `GET
|
|
|
|
/myindex/_settings,_alias` by separating mulitple types of requests with commas
|
|
|
|
in order to retrieve multiple types of information about one or more indices.
|
|
|
|
This comma-separation for retrieving multiple pieces of information has been
|
|
|
|
removed.. `GET /_all` can be used to retrieve all aliases, settings, and
|
|
|
|
mappings for all indices. In order to retrieve only the mappings for an index,
|
|
|
|
`GET /myindex/_mappings` (or `_aliases`, or `_settings`).
|