Enum Class Rescore.Kind

java.lang.Object
java.lang.Enum<Rescore.Kind>
co.elastic.clients.elasticsearch.core.search.Rescore.Kind
All Implemented Interfaces:
JsonEnum, JsonpSerializable, Serializable, Comparable<Rescore.Kind>, Constable
Enclosing class:
Rescore

public static enum Rescore.Kind extends Enum<Rescore.Kind> implements JsonEnum
Rescore variant kinds.
See Also:
  • Enum Constant Details

    • Query

      public static final Rescore.Kind Query
    • LearningToRank

      public static final Rescore.Kind LearningToRank
    • _Custom

      public static final Rescore.Kind _Custom
      A custom Rescore defined by a plugin
  • Method Details

    • values

      public static Rescore.Kind[] 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 Rescore.Kind 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
    • jsonValue

      public String jsonValue()
      Specified by:
      jsonValue in interface JsonEnum