-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[DOCS] Searches on the _type field are no longer supported
#78400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
_type field match no docs_type field matches no docs
Adds an 8.0 breaking change for PR #68564
|
Pinging @elastic/es-docs (Team:Docs) |
|
Pinging @elastic/es-search (Team:Search) |
|
|
||
| //tag::notable-breaking-changes[] | ||
| [[_type-search-matches-no-docs]] | ||
| .A search on the `_type` field now matches no documents. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a clearer way to phrase this would be "searches on _type are no longer supported". We actually completely removed support for searching on _type -- it's not recognized as a valid field. It just so happens that searches on non-existent fields will return no results. This note might suggest that _type is still a valid metadata field, whereas it doesn't exist anymore!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jtibshirani. I added some additional context with 581393e.
_type field matches no docs_type field are no longer supported.
_type field are no longer supported._type field are no longer supported
jtibshirani
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Adds an 8.0 breaking change for PR #68564
Preview
https://elasticsearch_78400.docs-preview.app.elstc.co/guide/en/elasticsearch/reference/master/migrating-8.0.html#breaking_80_search_changes