migrate_2_1.asciidoc 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. [[breaking-changes-2.1]]
  2. == Breaking changes in 2.1
  3. This section discusses the changes that you need to be aware of when migrating
  4. your application to Elasticsearch 2.1.
  5. === Search changes
  6. ==== `search_type=scan` deprecated
  7. The `scan` search type has been deprecated. All benefits from this search
  8. type can now be achieved by doing a scroll request that sorts documents in
  9. `_doc` order, for instance:
  10. [source,sh]
  11. ---------------
  12. GET /my_index/_search?scroll=2m
  13. {
  14. "sort": [
  15. "_doc"
  16. ]
  17. }
  18. ---------------
  19. Scroll requests sorted by `_doc` have been optimized to more efficiently resume
  20. from where the previous request stopped, so this will have the same performance
  21. characteristics as the former `scan` search type.
  22. === Update changes
  23. ==== Updates now `detect_noop` by default
  24. We've switched the default value of the `detect_noop` option from `false` to
  25. `true`. This means that Elasticsearch will ignore updates that don't change
  26. source unless you explicitly set `"detect_noop": false`. `detect_noop` was
  27. always computationally cheap compared to the expense of the update which can be
  28. thought of as a delete operation followed by an index operation.