2020-07-23 23:48:22 +08:00
[discrete]
2019-04-16 22:46:54 +08:00
[[breaking_80_reindex_changes]]
2021-01-15 01:14:48 +08:00
==== Reindex changes
2019-04-16 22:46:54 +08:00
2020-04-24 04:47:39 +08:00
//NOTE: The notable-breaking-changes tagged regions are re-used in the
//Installation and Upgrade Guide
//tag::notable-breaking-changes[]
2020-05-11 20:59:40 +08:00
.Reindex from remote now re-encodes URL-encoded index names.
[%collapsible]
====
*Details* +
Reindex from remote would previously allow URL-encoded index names and not
2019-04-16 22:46:54 +08:00
re-encode them when generating the search request for the remote host. This
2020-05-11 20:59:40 +08:00
leniency has been removed such that all index names are correctly encoded when
2019-04-16 22:46:54 +08:00
reindex generates remote search requests.
2020-05-11 20:59:40 +08:00
*Impact* +
Specify unencoded index names for reindex from remote requests.
====
2019-05-09 21:41:11 +08:00
2020-05-11 20:59:40 +08:00
.Reindex-related REST API endpoints containing mapping types have been removed.
[%collapsible]
====
*Details* +
2019-06-26 15:36:17 +08:00
The `/{index}/{type}/_delete_by_query` and `/{index}/{type}/_update_by_query` REST endpoints have been removed in favour of `/{index}/_delete_by_query` and `/{index}/_update_by_query`, since indexes no longer contain types, these typed endpoints are obsolete.
2020-05-11 20:59:40 +08:00
*Impact* +
Use the replacement REST API endpoints. Requests submitted to API endpoints
that contain a mapping type will return an error.
====
2019-06-26 15:36:17 +08:00
2020-05-11 20:59:40 +08:00
.In the reindex, delete by query, and update by query APIs, the `size` parameter has been renamed.
[%collapsible]
====
*Details* +
2019-06-26 15:36:17 +08:00
Previously, a `_reindex` request had two different size specifications in the body:
- Outer level, determining the maximum number of documents to process
- Inside the `source` element, determining the scroll/batch size.
The outer level `size` parameter has now been renamed to `max_docs` to
avoid confusion and clarify its semantics.
Similarly, the `size` parameter has been renamed to `max_docs` for
2020-05-11 20:59:40 +08:00
`_delete_by_query` and `_update_by_query` to keep the 3 interfaces consistent.
*Impact* +
Use the replacement parameters. Requests containing the `size` parameter will
return an error.
2021-01-15 01:14:48 +08:00
====
2021-07-27 05:43:39 +08:00
//end::notable-breaking-changes[]