search.asciidoc 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. ==== Removal of sparse vector fields
  27. The `sparse_vector` field type was deprecated in 7.6 and is now removed in
  28. 8.0. We have not seen much interest in this experimental field type, and don't
  29. see a clear use case as it's currently designed. If you have feedback or
  30. suggestions around sparse vector functionality, please let us know through
  31. GitHub or the 'discuss' forums.
  32. [float]
  33. ==== Update to vector function signatures
  34. The vector functions of the form `function(query, doc['field'])` were
  35. deprecated in 7.6, and are now removed in 8.x. The form
  36. `function(query, 'field')` should be used instead. For example,
  37. `cosineSimilarity(query, doc['field'])` is replaced by
  38. `cosineSimilarity(query, 'field')`.