migrate_2_1.asciidoc 724 B

123456789101112131415161718192021222324252627
  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.