Skip to content
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

Small internal AnalysisRegistry changes #42500

Merged
merged 1 commit into from
May 24, 2019

Conversation

cbuescher
Copy link
Member

Some internal refactorings to the AnalysisRegistry, spin-off from #40782.
Mostly readability changes and reduction of some method sizes.

Some internal refactorings to the AnalysisRegistry, spin-off from elastic#40782.
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search

Copy link
Contributor

@romseygeek romseygeek left a comment

Choose a reason for hiding this comment

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

LGTM, anything that makes this easier to read is a bonus

final Map<String, CharFilterFactory> charFilterFactories = buildCharFilterFactories(indexSettings);
final Map<String, TokenizerFactory> tokenizerFactories = buildTokenizerFactories(indexSettings);
final Map<String, TokenFilterFactory> tokenFilterFactories = buildTokenFilterFactories(indexSettings);
final Map<String, AnalyzerProvider<?>> analyzierFactories = buildAnalyzerFactories(indexSettings);
final Map<String, AnalyzerProvider<?>> analyzerFactories = buildAnalyzerFactories(indexSettings);
Copy link
Contributor

Choose a reason for hiding this comment

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

❤️

@cbuescher cbuescher merged commit cbf1150 into elastic:master May 24, 2019
cbuescher pushed a commit that referenced this pull request May 24, 2019
Some internal refactorings to the AnalysisRegistry, spin-off from #40782.
gurkankaymak pushed a commit to gurkankaymak/elasticsearch that referenced this pull request May 27, 2019
Some internal refactorings to the AnalysisRegistry, spin-off from elastic#40782.
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.

4 participants