docs.asciidoc 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. [[breaking_50_document_api_changes]]
  2. === Document API changes
  3. ==== `?refresh` no longer supports truthy and falsy values
  4. The `?refresh` request parameter used to accept any value other than `false`,
  5. `0`, `off`, and `no` to mean "make the changes from this request visible for
  6. search immediately." Now it only accepts `?refresh` and `?refresh=true` to
  7. mean that. You can set it to `?refresh=false` and the request will take no
  8. refresh-related action. The same is true if you leave `refresh` off of the
  9. url entirely. If you add `?refresh=wait_for` Elasticsearch will wait for the
  10. changes to become visible before replying to the request but won't take any
  11. immediate refresh related action. See <<docs-refresh>>.
  12. ==== Reindex and Update By Query
  13. Before 5.0.0 `_reindex` and `_update_by_query` only retried bulk failures so
  14. they used the following response format:
  15. [source,js]
  16. ----------------------
  17. {
  18. ...
  19. "retries": 10
  20. ...
  21. }
  22. ----------------------
  23. Where `retries` counts the number of bulk retries. Now they retry on search
  24. failures as well and use this response format:
  25. [source,js]
  26. ----------------------
  27. {
  28. ...
  29. "retries": {
  30. "bulk": 10,
  31. "search": 1
  32. }
  33. ...
  34. }
  35. ----------------------
  36. Where `bulk` counts the number of bulk retries and `search` counts the number
  37. of search retries.