Enum Class TextQueryType

java.lang.Object
java.lang.Enum<TextQueryType>
co.elastic.clients.elasticsearch._types.query_dsl.TextQueryType
All Implemented Interfaces:
JsonEnum, JsonpSerializable, Serializable, Comparable<TextQueryType>, Constable

@JsonpDeserializable public enum TextQueryType extends Enum<TextQueryType> implements JsonEnum
See Also:
  • Enum Constant Details

    • BestFields

      public static final TextQueryType BestFields
      Finds documents that match any field, but uses the _score from the best field.
    • MostFields

      public static final TextQueryType MostFields
      Finds documents that match any field and combines the _score from each field.
    • CrossFields

      public static final TextQueryType CrossFields
      Treats fields with the same analyzer as though they were one big field. Looks for each word in any field.
    • Phrase

      public static final TextQueryType Phrase
      Runs a match_phrase query on each field and uses the _score from the best field.
    • PhrasePrefix

      public static final TextQueryType PhrasePrefix
      Runs a match_phrase_prefix query on each field and uses the _score from the best field.
    • BoolPrefix

      public static final TextQueryType BoolPrefix
      Creates a match_bool_prefix query on each field and combines the _score from each field.
  • Field Details

  • Method Details

    • values

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