From 4dd2ba6d505b27d6297fb328723b19217321fdd7 Mon Sep 17 00:00:00 2001 From: Tiago Alves Macambira Date: Mon, 19 May 2014 13:49:33 -0300 Subject: [PATCH] Register uppercase as an exposed ES token filter. Just follow "lowercase" token filter example and register "uppercase" token filter as an exposed token filter. This will not, by itself, test whether ES is correctly handling "uppercase" TF; this is more of a "code as documentation" fix. --- .../org/elasticsearch/index/analysis/AnalysisFactoryTests.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/java/org/elasticsearch/index/analysis/AnalysisFactoryTests.java b/src/test/java/org/elasticsearch/index/analysis/AnalysisFactoryTests.java index 98d13124874..e2ce0566905 100644 --- a/src/test/java/org/elasticsearch/index/analysis/AnalysisFactoryTests.java +++ b/src/test/java/org/elasticsearch/index/analysis/AnalysisFactoryTests.java @@ -139,6 +139,7 @@ public class AnalysisFactoryTests extends ElasticsearchTestCase { put("trim", TrimTokenFilterFactory.class); put("truncate", TruncateTokenFilterFactory.class); put("turkishlowercase", LowerCaseTokenFilterFactory.class); + put("uppercase", UpperCaseTokenFilterFactory.class); put("worddelimiter", WordDelimiterTokenFilterFactory.class); // TODO: these tokenfilters are not yet exposed: useful? @@ -189,8 +190,6 @@ public class AnalysisFactoryTests extends ElasticsearchTestCase { put("type", Void.class); // puts the type into the payload put("typeaspayload", Void.class); - // opposite of lowercase... - put("uppercase", Void.class); }}; public void testTokenFilters() {