Skip to content

Commit 58595e7

Browse files
authored
[DOCS] Searches on the _type field are no longer supported (#78400)
Adds an 8.0 breaking change for PR #68564
1 parent d49bdf9 commit 58595e7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/reference/migration/migrate_8_0/search.asciidoc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,23 @@
66
//Installation and Upgrade Guide
77

88
//tag::notable-breaking-changes[]
9+
[[_type-search-matches-no-docs]]
10+
.Searches on the `_type` field are no longer supported.
11+
[%collapsible]
12+
====
13+
*Details* +
14+
In 8.x, the `_type` metadata field has been removed. {es} now handles a search
15+
on the `_type` field as a search on a non-existent field. A search on a
16+
non-existent field matches no documents, regardless of the query string.
17+
18+
In 7.x, a search for `_doc` in the `_type` field would match the same documents
19+
as a `match_all` query.
20+
21+
*Impact* +
22+
Remove queries on the `_type` field from your search requests and search
23+
templates. Searches that include these queries may return no results.
24+
====
25+
926
[[msearch-empty-line-support]]
1027
.The multi search API now parses an empty first line as action metadata in text files.
1128
[%collapsible]

0 commit comments

Comments
 (0)