-
Notifications
You must be signed in to change notification settings - Fork 24.7k
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 some more ParseFieldMatcher usages #22571
Remove some more ParseFieldMatcher usages #22571
Conversation
@nik9000 This should be the second last PR on this topic, next one will be the actual removal I think. |
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.
Left a variable naming thing but otherwise LGTM.
ADD_PARSER.declareField(AliasActions::routing, p -> p.text(), new ParseField("routing"), ValueType.INT); | ||
ADD_PARSER.declareField(AliasActions::indexRouting, p -> p.text(), new ParseField("index_routing"), ValueType.INT); | ||
ADD_PARSER.declareField(AliasActions::searchRouting, p -> p.text(), new ParseField("search_routing"), ValueType.INT); | ||
ADD_PARSER.declareField(AliasActions::routing, XContentParser::text, new ParseField("routing"), ValueType.INT); |
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.
++
static { | ||
PARSER.declareField((parser, request, parseFieldMatcherSupplier) -> | ||
request.getShrinkIndexRequest().settings(parser.map()), | ||
PARSER.declareField((parser, request, parseFieldMatcherSupplier) -> request.getShrinkIndexRequest().settings(parser.map()), |
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.
s/parseFieldMatcherSupplier/context/ ? Or is there a version of this method without context?
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.
leftover thanks for finding it.
81ec2bf
to
6099ef4
Compare
Remove some more ParseFieldMatcher usages
Relates to #19552
Relates to #22130