Enum SimpleQueryFlag

    • Enum Constant Detail

      • PREFIX

        public static final SimpleQueryFlag PREFIX
        Enables PREFIX operator (*)
      • PHRASE

        public static final SimpleQueryFlag PHRASE
        Enables PHRASE operator (")
      • PRECEDENCE

        public static final SimpleQueryFlag PRECEDENCE
        Enables PRECEDENCE operators: ( and )
      • ESCAPE

        public static final SimpleQueryFlag ESCAPE
        Enables ESCAPE operator (\)
      • WHITESPACE

        public static final SimpleQueryFlag WHITESPACE
        Enables WHITESPACE operators: ' ' '\n' '\r' '\t'
      • FUZZY

        public static final SimpleQueryFlag FUZZY
        Enables FUZZY operators: (~) on single terms
      • NEAR

        public static final SimpleQueryFlag NEAR
        Enables NEAR operators: (~) on phrases
    • Method Detail

      • values

        public static SimpleQueryFlag[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SimpleQueryFlag c : SimpleQueryFlag.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SimpleQueryFlag valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null