Skip to content

Conversation

@nik9000
Copy link
Member

@nik9000 nik9000 commented May 9, 2017

There are now three public static method to build instances of
PreConfiguredTokenFilter and the ctor is private. I chose static
methods instead of constructors because those allow us to change
out the implementation returned if we so desire.

Also moves over two more pre-configured token filters. There still
a bunch to go!

Relates to #23658

nik9000 added 5 commits May 9, 2017 18:19
There are now three public static method to build instances of
PreConfiguredTokenFilter and the ctor is private. I chose static
methods instead of constructors because those allow us to change
out the implementation returned if we so desire.

Relates to elastic#23658
@nik9000 nik9000 added :Search Relevance/Analysis How text is split into tokens :Core/Infra/Plugins Plugin API and infrastructure >enhancement review v6.0.0 labels May 9, 2017
@nik9000 nik9000 requested review from jpountz and rjernst May 9, 2017 22:52
Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

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

LGTM

*/
public final class PreConfiguredTokenFilter implements AnalysisModule.AnalysisProvider<TokenFilterFactory> {
/**
* Set up a pre-configured token filter that may no vary at all.
Copy link
Member

Choose a reason for hiding this comment

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

typo: no -> not

*/
public final class PreConfiguredTokenFilter implements AnalysisModule.AnalysisProvider<TokenFilterFactory> {
/**
* Set up a pre-configured token filter that may no vary at all.
Copy link
Member

Choose a reason for hiding this comment

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

nit: "Set up" -> "Create"

@nik9000 nik9000 merged commit 65f2717 into elastic:master May 11, 2017
@nik9000 nik9000 removed the :Search Relevance/Analysis How text is split into tokens label May 11, 2017
@nik9000
Copy link
Member Author

nik9000 commented May 11, 2017

From a categorization perspective this issue is about the plugin API more than analysis so I dropped the :Analysis label.

nik9000 added a commit that referenced this pull request May 19, 2017
Allows plugins to register pre-configured tokenizers. Much
of the decisions are the same as those in #24223, #24572,
and #24223. This only migrates the lowercase tokenizer but
I figure that is a good start because it proves out the features.
@nik9000 nik9000 deleted the prebuilt_token_filter_2 branch June 7, 2017 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants