Enum Class SimpleQueryStringFlag

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

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

    • None

      public static final SimpleQueryStringFlag None
      Disables all operators.
    • And

      public static final SimpleQueryStringFlag And
      Enables the + AND operator.
    • Not

      public static final SimpleQueryStringFlag Not
      Enables the - NOT operator.
    • Or

      public static final SimpleQueryStringFlag Or
      Enables the \| OR operator.
    • Prefix

      public static final SimpleQueryStringFlag Prefix
      Enables the * prefix operator.
    • Phrase

      public static final SimpleQueryStringFlag Phrase
      Enables the " quotes operator used to search for phrases.
    • Precedence

      public static final SimpleQueryStringFlag Precedence
      Enables the ( and ) operators to control operator precedence.
    • Escape

      public static final SimpleQueryStringFlag Escape
      Enables \ as an escape character.
    • Whitespace

      public static final SimpleQueryStringFlag Whitespace
      Enables whitespace as split characters.
    • Fuzzy

      public static final SimpleQueryStringFlag Fuzzy
      Enables the ~N operator after a word, where N is an integer denoting the allowed edit distance for matching.
    • Near

      public static final SimpleQueryStringFlag Near
      Enables the ~N operator, after a phrase where N is the maximum number of positions allowed between matching tokens. Synonymous to SLOP.
    • Slop

      public static final SimpleQueryStringFlag Slop
      Enables the ~N operator, after a phrase where N is maximum number of positions allowed between matching tokens. Synonymous to NEAR.
    • All

      public static final SimpleQueryStringFlag All
      Enables all optional operators.
  • Field Details

  • Method Details

    • values

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