rest.asciidoc 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. [[breaking_60_rest_changes]]
  2. === REST changes
  3. ==== Unquoted JSON
  4. In previous versions of Elasticsearch, JSON documents were allowed to contain unquoted field names.
  5. This feature was removed in the 5.x series, but a backwards-compatibility layer was added via the
  6. system property `elasticsearch.json.allow_unquoted_field_names`. This backwards-compatibility layer
  7. has been removed in Elasticsearch 6.0.0.
  8. ==== Duplicate Keys in JSON, CBOR, Yaml and Smile
  9. In previous versions of Elasticsearch, documents were allowed to contain duplicate keys. Elasticsearch 6.0.0
  10. enforces that all keys are unique. This applies to all content types: JSON, CBOR, Yaml and Smile.
  11. ==== Content-Type Auto-detection
  12. In previous versions of Elasticsearch, having a proper Content-Type for the data in a request was not enforced.
  13. Elasticsearch 6.0.0 enforces that all requests with a body must have a supported Content-Type and this type will
  14. be used when parsing the data.
  15. When using the `source` query string parameter, the `source_content_type` parameter must also be specified with
  16. the media type of the source.
  17. ==== Boolean API parameters
  18. All REST APIs parameters (both request parameters and JSON body) support providing boolean "false" as the
  19. value `false` and boolean "true" as the value `true`. All other values will raise an error.
  20. ==== Analyze API changes
  21. The deprecated request parameters and plain text in request body has been removed. Define parameters in request body.
  22. ==== Indices exists API
  23. The `ignore_unavailable` and `allow_no_indices` options are no longer accepted
  24. as they could cause undesired results when their values differed from their
  25. defaults.
  26. ==== `timestamp` and `ttl` in index requests
  27. `timestamp` and `ttl` are not accepted anymore as parameters of index/update
  28. requests.
  29. ==== Refresh requests with one or more shard failures return HTTP 500 response instead of 200
  30. Refresh requests that are broadcast to multiple shards that can have one or more
  31. shards fail during the request now return a 500 response instead of a 200
  32. response in the event there is at least one failure.