Skip to content

Commit

Permalink
fix KNOWN_TOKENIZERS
Browse files Browse the repository at this point in the history
Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
  • Loading branch information
nknize committed Mar 16, 2022
1 parent c5401a1 commit 4d272b0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ protected Map<String, Class<?>> getTokenFilters() {
filters.put("russianlightstem", StemmerTokenFilterFactory.class);
filters.put("soranistem", StemmerTokenFilterFactory.class);
filters.put("spanishlightstem", StemmerTokenFilterFactory.class);
filters.put("spanishpluralstem", StemmerTokenFilterFactory.class);
filters.put("swedishlightstem", StemmerTokenFilterFactory.class);
filters.put("swedishminimalstem", Void.class);
filters.put("stemmeroverride", StemmerOverrideTokenFilterFactory.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ protected Map<String, Class<?>> getTokenFilters() {
filters.put("icufolding", IcuFoldingTokenFilterFactory.class);
filters.put("icunormalizer2", IcuNormalizerTokenFilterFactory.class);
filters.put("icutransform", IcuTransformTokenFilterFactory.class);
filters.put("spanishpluralstem", IcuTransformTokenFilterFactory.class);
return filters;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
public abstract class AnalysisFactoryTestCase extends OpenSearchTestCase {

private static final Map<String, Class<?>> KNOWN_TOKENIZERS = new MapBuilder<String, Class<?>>()
// exposed in ES
// exposed in OpenSearch
.put("classic", MovedToAnalysisCommon.class)
.put("edgengram", MovedToAnalysisCommon.class)
.put("keyword", MovedToAnalysisCommon.class)
Expand All @@ -81,7 +81,7 @@ public abstract class AnalysisFactoryTestCase extends OpenSearchTestCase {
.immutableMap();

static final Map<String, Class<?>> KNOWN_TOKENFILTERS = new MapBuilder<String, Class<?>>()
// exposed in ES
// exposed in OpenSearch
.put("apostrophe", MovedToAnalysisCommon.class)
.put("arabicnormalization", MovedToAnalysisCommon.class)
.put("arabicstem", MovedToAnalysisCommon.class)
Expand Down Expand Up @@ -217,6 +217,10 @@ public abstract class AnalysisFactoryTestCase extends OpenSearchTestCase {
.put("japanesecompletion", Void.class)
// LUCENE-9575: recognize arbitrary patterns that include punctuation
.put("patterntyping", Void.class)
// LUCENE-10248
.put("spanishpluralstem", Void.class)
// LUCENE-10352
.put("daitchmokotoffsoundex", Void.class)
.immutableMap();

static final Map<String, Class<?>> KNOWN_CHARFILTERS = new MapBuilder<String, Class<?>>()
Expand Down

0 comments on commit 4d272b0

Please sign in to comment.