org.compass.annotations
Enum AnalyzerType
java.lang.Object
java.lang.Enum<AnalyzerType>
org.compass.annotations.AnalyzerType
- All Implemented Interfaces:
- Serializable, Comparable<AnalyzerType>
public enum AnalyzerType
- extends Enum<AnalyzerType>
The intenral Compass supported analyzers.
Note the CustomAnalyzer, which is not an analyzer, but specifies
that the analyzer that will be used is a custom implementation of Lucene
Analyzer/
- Author:
- kimchy
|
Method Summary |
static AnalyzerType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static AnalyzerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
Standard
public static final AnalyzerType Standard
Simple
public static final AnalyzerType Simple
Whitespace
public static final AnalyzerType Whitespace
Stop
public static final AnalyzerType Stop
Snowball
public static final AnalyzerType Snowball
- Uses a snowball analyzer. See
SnowballType.
Braziliian
public static final AnalyzerType Braziliian
Cjk
public static final AnalyzerType Cjk
Chinese
public static final AnalyzerType Chinese
Czech
public static final AnalyzerType Czech
German
public static final AnalyzerType German
Greek
public static final AnalyzerType Greek
French
public static final AnalyzerType French
Dutch
public static final AnalyzerType Dutch
Russian
public static final AnalyzerType Russian
CustomAnalyzer
public static final AnalyzerType CustomAnalyzer
values
public static final AnalyzerType[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(AnalyzerType c : AnalyzerType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static AnalyzerType valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
Copyright (c) 2004-2008 The Compass Project.