Enum Class Stemming

java.lang.Object
java.lang.Enum<Stemming>
com.yahoo.schema.document.Stemming
All Implemented Interfaces:
Serializable, Comparable<Stemming>, Constable

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
  • Enum Constant Details

    • NONE

      public static final Stemming NONE
      No stemming
    • SHORTEST

      public static final Stemming SHORTEST
      select shortest possible stem
    • BEST

      public static final Stemming BEST
      select the "best" stem alternative
    • MULTIPLE

      public static final Stemming MULTIPLE
      index multiple stems
  • Method Details

    • values

      public static Stemming[] 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

      public static Stemming valueOf(String name)
      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 name
      NullPointerException - 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()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Stemming>
    • toStemMode

      public com.yahoo.language.process.StemMode toStemMode()