Package com.yahoo.schema.document
Enum Class Stemming
- All Implemented Interfaces:
Serializable
,Comparable<Stemming>
,Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stemming
Returns the stemming object for the given string.getName()
com.yahoo.language.process.StemMode
toString()
static Stemming
Returns the enum constant of this class with the specified name.static Stemming[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No stemming -
SHORTEST
select shortest possible stem -
BEST
select the "best" stem alternative -
MULTIPLE
index multiple stems
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
get
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
-
toString
-
toStemMode
public com.yahoo.language.process.StemMode toStemMode()
-