You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/migration/migrate_8_0/search.asciidoc
+45-24
Original file line number
Diff line number
Diff line change
@@ -8,65 +8,86 @@
8
8
//tag::notable-breaking-changes[]
9
9
//end::notable-breaking-changes[]
10
10
11
-
[float]
12
-
==== Removal of types
13
-
11
+
.Search-related REST API endpoints containing mapping types have been removed.
12
+
[%collapsible]
13
+
====
14
+
*Details* +
14
15
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..
15
16
16
17
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..
17
18
18
19
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.
20
+
====
19
21
20
-
[float]
21
-
==== Removal of queries
22
-
22
+
.The `common` query has been removed.
23
+
[%collapsible]
24
+
====
25
+
*Details* +
23
26
The `common` query, deprecated in 7.x, has been removed in 8.0.
24
27
The same functionality can be achieved by the `match` query if the total number of hits is not tracked.
28
+
====
25
29
26
-
[float]
27
-
===== Removal of query parameters
28
-
30
+
.The `cutoff_frequency` parameter has been removed from the `match` and `multi_match` query.
31
+
[%collapsible]
32
+
====
33
+
*Details* +
29
34
The `cutoff_frequency` parameter, deprecated in 7.x, has been removed in 8.0 from `match` and `multi_match` queries.
30
35
The same functionality can be achieved without any configuration provided that the total number of hits is not tracked.
36
+
====
31
37
32
-
[float]
33
-
===== Removal of sort parameters
34
-
38
+
.The `nested_filter` and `nested_path` properties have been removed from the search API's `sort` request body parameter.
39
+
[%collapsible]
40
+
====
41
+
*Details* +
35
42
The `nested_filter` and `nested_path` options, deprecated in 6.x, have been removed in favor of the `nested` context.
43
+
====
36
44
37
-
38
-
[float]
39
-
===== Shard allocation awareness in Search and Get requests
40
-
45
+
.Search and get requests are now routed to shards using adaptive replica selection by default.
46
+
[%collapsible]
47
+
====
48
+
*Details* +
41
49
{es} will no longer prefer using shards in the same location (with the same awareness attribute values) to process
42
50
`_search` and `_get` requests. Adaptive replica selection (activated by default in this version) will route requests
43
51
more efficiently using the service time of prior inter-node communications.
52
+
====
44
53
45
-
[float]
46
-
==== Removal of sparse vector fields
54
+
.The `sparse_vector` field datatype has been removed.
55
+
[%collapsible]
56
+
====
57
+
*Details* +
47
58
The `sparse_vector` field type was deprecated in 7.6 and is now removed in
48
59
8.0. We have not seen much interest in this experimental field type, and don't
49
60
see a clear use case as it's currently designed. If you have feedback or
50
61
suggestions around sparse vector functionality, please let us know through
51
62
GitHub or the 'discuss' forums.
63
+
====
52
64
53
-
[float]
54
-
==== Update to vector function signatures
65
+
.Vector functions using `(query, doc['field'])` are no longer supported.
66
+
[%collapsible]
67
+
====
68
+
*Details* +
55
69
The vector functions of the form `function(query, doc['field'])` were
56
70
deprecated in 7.6, and are now removed in 8.x. The form
57
71
`function(query, 'field')` should be used instead. For example,
58
72
`cosineSimilarity(query, doc['field'])` is replaced by
59
73
`cosineSimilarity(query, 'field')`.
74
+
====
60
75
61
-
[float]
62
-
==== Object format for `indices_boost`
76
+
.The search API's `indices_boost` request body parameter no longer accepts object values.
77
+
[%collapsible]
78
+
====
79
+
*Details* +
63
80
The `indices_boost` option in the search request used to accept the boosts
64
81
both as an object and as an array. The object format has been deprecated since
65
82
5.2 and is now removed in 8.0.
83
+
====
66
84
67
-
[float]
68
-
==== Removal of `use_field_mapping` for docvalues fields
85
+
.The search API's `use_field_mapping` request body parameter has been removed.
86
+
[%collapsible]
87
+
====
88
+
*Details* +
69
89
In 7.0, we began formatting `docvalue_fields` by default using each field's
70
90
mapping definition. To ease the transition from 6.x, we added the format
71
91
option `use_field_mapping`. This parameter was deprecated in 7.0, and is now
0 commit comments