public static enum TextTokenizer.TokenizerMode extends Enum<TextTokenizer.TokenizerMode>
Enum Constant and Description |
---|
INDEX
Tokenize a
String as if it were about to be indexed. |
QUERY
Tokenize a
String as if it were about to be used as the arguments
to a query. |
Modifier and Type | Method and Description |
---|---|
static TextTokenizer.TokenizerMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TextTokenizer.TokenizerMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextTokenizer.TokenizerMode INDEX
String
as if it were about to be indexed. This should
generally be the mode used when tokenizing documents.public static final TextTokenizer.TokenizerMode QUERY
String
as if it were about to be used as the arguments
to a query. This should generally be the mode used when tokenizing query
strings.public static TextTokenizer.TokenizerMode[] values()
for (TextTokenizer.TokenizerMode c : TextTokenizer.TokenizerMode.values()) System.out.println(c);
public static TextTokenizer.TokenizerMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null