Enum Class TypoToleranceEnum

java.lang.Object
java.lang.Enum<TypoToleranceEnum>
com.algolia.model.search.TypoToleranceEnum
All Implemented Interfaces:
TypoTolerance, Serializable, Comparable<TypoToleranceEnum>, Constable

public enum TypoToleranceEnum extends Enum<TypoToleranceEnum> implements TypoTolerance
- `min`. Return matches with the lowest number of typos. For example, if you have matches without typos, only include those. But if there are no matches without typos (with 1 typo), include matches with 1 typo (2 typos). - `strict`. Return matches with the two lowest numbers of typos. With `strict`, the Typo ranking criterion is applied first in the `ranking` setting.
  • Enum Constant Details

  • Method Details

    • values

      public static TypoToleranceEnum[] 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 TypoToleranceEnum 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
    • getValue

      public String getValue()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<TypoToleranceEnum>
    • fromValue

      public static TypoToleranceEnum fromValue(String value)