reindex.asciidoc 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. [discrete]
  2. [[breaking_80_reindex_changes]]
  3. ==== Reindex changes
  4. //NOTE: The notable-breaking-changes tagged regions are re-used in the
  5. //Installation and Upgrade Guide
  6. //tag::notable-breaking-changes[]
  7. //end::notable-breaking-changes[]
  8. .Reindex from remote now re-encodes URL-encoded index names.
  9. [%collapsible]
  10. ====
  11. *Details* +
  12. Reindex from remote would previously allow URL-encoded index names and not
  13. re-encode them when generating the search request for the remote host. This
  14. leniency has been removed such that all index names are correctly encoded when
  15. reindex generates remote search requests.
  16. *Impact* +
  17. Specify unencoded index names for reindex from remote requests.
  18. ====
  19. .Reindex-related REST API endpoints containing mapping types have been removed.
  20. [%collapsible]
  21. ====
  22. *Details* +
  23. 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.
  24. *Impact* +
  25. Use the replacement REST API endpoints. Requests submitted to API endpoints
  26. that contain a mapping type will return an error.
  27. ====
  28. .In the reindex, delete by query, and update by query APIs, the `size` parameter has been renamed.
  29. [%collapsible]
  30. ====
  31. *Details* +
  32. Previously, a `_reindex` request had two different size specifications in the body:
  33. - Outer level, determining the maximum number of documents to process
  34. - Inside the `source` element, determining the scroll/batch size.
  35. The outer level `size` parameter has now been renamed to `max_docs` to
  36. avoid confusion and clarify its semantics.
  37. Similarly, the `size` parameter has been renamed to `max_docs` for
  38. `_delete_by_query` and `_update_by_query` to keep the 3 interfaces consistent.
  39. *Impact* +
  40. Use the replacement parameters. Requests containing the `size` parameter will
  41. return an error.
  42. ====