Enum Stemming
- java.lang.Object
-
- java.lang.Enum<Stemming>
-
- com.yahoo.searchdefinition.document.Stemming
-
- All Implemented Interfaces:
Serializable
,Comparable<Stemming>
public enum Stemming extends Enum<Stemming>
The stemming setting of a field. This describes how the search engine should transform content of this field into base forms (stems) to increase recall (find "car" when you search for "cars" etc.).- Author:
- bratseth
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Stemming
get(String stemmingName)
Returns the stemming object for the given string.String
getName()
com.yahoo.language.process.StemMode
toStemMode()
String
toString()
static Stemming
valueOf(String name)
Returns the enum constant of this type with the specified name.static Stemming[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static Stemming[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Stemming c : Stemming.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Stemming 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 nameNullPointerException
- if the argument is null
-
get
public static Stemming get(String stemmingName)
Returns the stemming object for the given string. The legal stemming names are the stemming constants in any capitalization.- Throws:
IllegalArgumentException
- if there is no stemming type with the given name
-
getName
public String getName()
-
toStemMode
public com.yahoo.language.process.StemMode toStemMode()
-
-