-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
Move more token filters to analysis-common module #25384
Move more token filters to analysis-common module #25384
Conversation
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 few small things but LGTM.
@@ -458,7 +456,6 @@ public void testPrefixLength() throws IOException { | |||
XContentBuilder mapping = XContentFactory.jsonBuilder().startObject().startObject("type1") | |||
.startObject("properties") | |||
.startObject("body").field("type", "text").field("analyzer", "body").endObject() | |||
.startObject("body_reverse").field("type", "text").field("analyzer", "reverse").endObject() |
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.
Weird that this wasn't used!
@@ -17,10 +17,6 @@ | |||
}, | |||
"my":{ | |||
"type":"myfilter" | |||
}, |
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.
I wonder if it is time to remove this entire file somehow!
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.
Oh! I see. You don't need to get rid of it because you can plugin mocks into it. Great.
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.
Naming this the same as the one for compound analysis seems bad. Maybe each one should have its own name.
@@ -67,6 +68,39 @@ public CommonAnalysisFactoryTests() { | |||
filters.put("uppercase", UpperCaseTokenFilterFactory.class); | |||
filters.put("ngram", NGramTokenFilterFactory.class); | |||
filters.put("edgengram", EdgeNGramTokenFilterFactory.class); | |||
filters.put("bulgarianstem", StemmerTokenFilterFactory.class); |
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.
Woah. Makes sense, but woah.
The following token filters were moved: stemmer, stemmer_override, kstem, dictionary_decompounder, hyphenation_decompounder, reverse, elision and truncate. Relates to elastic#23658
3ac20d1
to
a34f5fa
Compare
The following token filters were moved: stemmer, stemmer_override, kstem, dictionary_decompounder, hyphenation_decompounder, reverse, elision and truncate.
Relates to #23658