Skip to content

Conversation

@martijnvg
Copy link
Member

Move the common_grams , limit, pattern_capture and pattern_replace token filter to analysis-common module.

Relates to #23658

Copy link
Member

@cbuescher cbuescher left a comment

Choose a reason for hiding this comment

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

LGTM, I left a question about the new yaml test just out of curiosity.

Copy link
Member

Choose a reason for hiding this comment

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

I'm curious why you changed this from calling AnalysisTestsHelper to a private helper method. Is it because the test is in the module now and cannot depend on core-test anymore?

Copy link
Member

Choose a reason for hiding this comment

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

Nevermind my previous comment, I see AnalysisTestsHelper is accessible here.

Copy link
Member Author

Choose a reason for hiding this comment

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

yes. it is a tiny helper method to reduce the line length where it is being used. (because also including new CommonAnalysisPlugin()) would in many cases cross the 140 character limit)

Copy link
Member

Choose a reason for hiding this comment

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

Just curious: are these new test because I cannot find a corresponding file where they might be moved from?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, these rest tests are new. It is the only we can be sure we wired up the factory correctly and the token filter is actually working.

The following token filters were moved: common grams, limit token, pattern capture and pattern raplace.

Relates to elastic#23658
@martijnvg martijnvg force-pushed the move_more_token_filters_to_analyis-commons_module3 branch from be77767 to 6db708e Compare July 7, 2017 08:03
@martijnvg martijnvg merged commit 6db708e into elastic:master Jul 7, 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.

3 participants