2018-09-27 11:41:38 -04:00
|
|
|
[float]
|
2018-06-12 15:00:06 -04:00
|
|
|
[[breaking_70_restclient_changes]]
|
|
|
|
=== High-level REST client changes
|
|
|
|
|
2018-09-27 11:41:38 -04:00
|
|
|
[float]
|
2018-06-12 15:00:06 -04:00
|
|
|
==== API methods accepting `Header` argument have been removed
|
|
|
|
|
|
|
|
All API methods accepting headers as a `Header` varargs argument, deprecated
|
|
|
|
since 6.4, have been removed in favour of the newly introduced methods that
|
|
|
|
accept instead a `RequestOptions` argument. In case you are not specifying any
|
|
|
|
header, e.g. `client.index(indexRequest)` becomes
|
|
|
|
`client.index(indexRequest, RequestOptions.DEFAULT)`.
|
|
|
|
In case you are specifying headers
|
|
|
|
e.g. `client.index(indexRequest, new Header("name" "value"))` becomes
|
2018-06-13 09:06:13 -04:00
|
|
|
`client.index(indexRequest, RequestOptions.DEFAULT.toBuilder().addHeader("name", "value").build());`
|
|
|
|
|
2018-09-27 11:41:38 -04:00
|
|
|
[float]
|
2018-06-13 09:06:13 -04:00
|
|
|
==== Cluster Health API default to `cluster` level
|
|
|
|
|
|
|
|
The Cluster Health API used to default to `shards` level to ease migration
|
|
|
|
from transport client that doesn't support the `level` parameter and always
|
|
|
|
returns information including indices and shards details. The level default
|
2019-02-06 02:43:47 -05:00
|
|
|
value has been aligned with the Elasticsearch default level: `cluster`.
|