Skip to content

Commit 4dd2ba6

Browse files
committed
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.
1 parent fc28fbf commit 4dd2ba6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/test/java/org/elasticsearch/index/analysis/AnalysisFactoryTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ public void testTokenizers() {
139139
put("trim", TrimTokenFilterFactory.class);
140140
put("truncate", TruncateTokenFilterFactory.class);
141141
put("turkishlowercase", LowerCaseTokenFilterFactory.class);
142+
put("uppercase", UpperCaseTokenFilterFactory.class);
142143
put("worddelimiter", WordDelimiterTokenFilterFactory.class);
143144

144145
// TODO: these tokenfilters are not yet exposed: useful?
@@ -189,8 +190,6 @@ public void testTokenizers() {
189190
put("type", Void.class);
190191
// puts the type into the payload
191192
put("typeaspayload", Void.class);
192-
// opposite of lowercase...
193-
put("uppercase", Void.class);
194193
}};
195194

196195
public void testTokenFilters() {

0 commit comments

Comments
 (0)