Java Code Examples for org.apache.lucene.analysis.miscellaneous.WordDelimiterFilter#UPPER
The following examples show how to use
org.apache.lucene.analysis.miscellaneous.WordDelimiterFilter#UPPER .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WordDelimiterTokenFilterFactory.java From Elasticsearch with Apache License 2.0 | 6 votes |
private Byte parseType(String s) { if (s.equals("LOWER")) return WordDelimiterFilter.LOWER; else if (s.equals("UPPER")) return WordDelimiterFilter.UPPER; else if (s.equals("ALPHA")) return WordDelimiterFilter.ALPHA; else if (s.equals("DIGIT")) return WordDelimiterFilter.DIGIT; else if (s.equals("ALPHANUM")) return WordDelimiterFilter.ALPHANUM; else if (s.equals("SUBWORD_DELIM")) return WordDelimiterFilter.SUBWORD_DELIM; else return null; }
Example 2
Source File: WordDelimiterTokenFilterFactory.java From crate with Apache License 2.0 | 6 votes |
private static Byte parseType(String s) { if (s.equals("LOWER")) { return WordDelimiterFilter.LOWER; } else if (s.equals("UPPER")) { return WordDelimiterFilter.UPPER; } else if (s.equals("ALPHA")) { return WordDelimiterFilter.ALPHA; } else if (s.equals("DIGIT")) { return WordDelimiterFilter.DIGIT; } else if (s.equals("ALPHANUM")) { return WordDelimiterFilter.ALPHANUM; } else if (s.equals("SUBWORD_DELIM")) { return WordDelimiterFilter.SUBWORD_DELIM; } else { return null; } }