search.asciidoc 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. [float]
  2. [[breaking_80_search_changes]]
  3. === Search Changes
  4. [float]
  5. ==== Removal of types
  6. The `/{index}/{type}/_search`, `/{index}/{type}/_msearch`, `/{index}/{type}/_search/template` and `/{index}/{type}/_msearch/template` REST endpoints have been removed in favour of `/{index}/_search`, `/{index}/_msearch`, `/{index}/_search/template` and `/{index}/_msearch/template`; since indexes no longer contain types, these typed endpoints are obsolete..
  7. The `/{index}/{type}/_termvectors`, `/{index}/{type}/{id}/_termvectors` and `/{index}/{type}/_mtermvectors` REST endpoints have been removed in favour of `/{index}/_termvectors`, `/{index}/{id}/_termvectors` and `/{index}/_mtermvectors`; since indexes no longer contain types, these typed endpoints are obsolete..
  8. The `/{index}/{type}/{doc}` and `/{index}/{type}/_mget` REST endpoints have been removed in favour of `/{index}/_doc/{doc}` and `/{index}/_mget`; since indexes no longer contain types, these typed endpoints are obsolete.
  9. [float]
  10. ==== Removal of queries
  11. The `common` query, deprecated in 7.x, has been removed in 8.0.
  12. The same functionality can be achieved by the `match` query if the total number of hits is not tracked.
  13. [float]
  14. ===== Removal of query parameters
  15. The `cutoff_frequency` parameter, deprecated in 7.x, has been removed in 8.0 from `match` and `multi_match` queries.
  16. The same functionality can be achieved without any configuration provided that the total number of hits is not tracked.
  17. [float]
  18. ===== Removal of sort parameters
  19. The `nested_filter` and `nested_path` options, deprecated in 6.x, have been removed in favor of the `nested` context.
  20. [float]
  21. ===== Shard allocation awareness in Search and Get requests
  22. {es} will no longer prefer using shards in the same location (with the same awareness attribute values) to process
  23. `_search` and `_get` requests. Adaptive replica selection (activated by default in this version) will route requests
  24. more efficiently using the service time of prior inter-node communications.
  25. [float]
  26. ==== Update to vector function signatures
  27. The vector functions of the form `function(query, doc['field'])` were
  28. deprecated in 7.6, and are now removed in 8.x. The form
  29. `function(query, 'field')` should be used instead. For example,
  30. `cosineSimilarity(query, doc['field'])` is replaced by
  31. `cosineSimilarity(query, 'field')`.