Skip to content

Remove ParseFieldMatcher and ParseFieldMatcherSupplier #22581

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

Merged

Conversation

javanna
Copy link
Member

@javanna javanna commented Jan 12, 2017

This PR removes all of the remaining usages of ParseFieldMatcher so that we can remove the class and ParseFieldMatcherSupplier.

Closes #19552

}


public void testGetAggregatorFactories_returnsUnmodifiableList() {
public void testGetAggregatorFactories_returnsUnmodifiableList() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lost the indent.

String chiSquare = "\"chi_square\":{\"include_negatives\": " + includeNegatives + ", \"background_is_superset\":"
+ backgroundIsSuperset + "}";
assertEquals(new ChiSquare(includeNegatives, backgroundIsSuperset),
parseFromString(heuristicParserMapper, searchContext, chiSquare));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much nicer!

@javanna javanna force-pushed the enhancement/remove_parse_field_matcher_last branch from c47d464 to eec7f30 Compare January 12, 2017 13:43
@javanna javanna merged commit 8e8ac5f into elastic:master Jan 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants