Elasticsearch Ruby Client breaking changes
Breaking changes can impact your Elastic applications, potentially disrupting normal operations. Before you upgrade, carefully review the Elasticsearch Ruby Client breaking changes and take the necessary steps to mitigate any issues. To learn how to upgrade, check Upgrade.
This release fixes an omission in 9.0.0
. The client sends the Accept
and Content-Type
headers to Elasticsearch with the value 'application/vnd.elasticsearch+json; compatible-with=9' to ensure compatibility with Elastic Stack 9.0. You can customize the HTTP headers when instantiating the client or per request. Note that a compatible version is required on both Content-Type
and Accept
headers.
Sending the scroll_id
as a parameter has been deprecated since version 7.0.0. It needs to be specified in the request body for clear_scroll
and scroll
.
Impact
Client code using clear_scroll
or scroll
APIs and the deprecated scroll_id
as a parameter needs to be updated.
Action
If you are using the clear_scroll
or scroll
APIs, and sending the scroll_id
as a parameter, you need to update your code to send the scroll_id
as part of the request body:
# Before:
client.clear_scroll(scroll_id: scroll_id)
# Now:
client.clear_scroll(body: { scroll_id: scroll_id })
# Before:
client.scroll(scroll_id: scroll_id)
# Now:
client.scroll(body: { scroll_id: scroll_id })