-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Remove support for _type in searches #68564
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,10 +84,6 @@ final class FieldTypeLookup { | |
* Returns the mapped field type for the given field name. | ||
*/ | ||
MappedFieldType get(String field) { | ||
if (field.equals(TypeFieldType.NAME)) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this means we can remove the 'type' field and constructor parameter as well? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oops, yep I'll remove it. |
||
return new TypeFieldType(type); | ||
} | ||
|
||
MappedFieldType fieldType = fullNameToFieldType.get(field); | ||
if (fieldType != null) { | ||
return fieldType; | ||
|
This file was deleted.
This file was deleted.
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.
is this the only yaml test case that will be affected? Just wanted to make sure we have coverage in 7.x to bring this with compatible api
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.
Yes this is the only one, we had very light test coverage for this capability.