Enum QueryBuildingSetting

    • Enum Constant Detail

      • analyzer

        public static final QueryBuildingSetting analyzer
        Analyzer to be used to analyze the input query.
      • minShouldMatch

        public static final QueryBuildingSetting minShouldMatch
        see https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-minimum-should-match.html
      • tieBreaker

        public static final QueryBuildingSetting tieBreaker
        float value between 0 (inclusive) and 1 (inclusive)
      • multimatch_type

        public static final QueryBuildingSetting multimatch_type
        one of CROSS_FIELDS (default), BEST_FIELDS, MOST_FIELDS, PHRASE, PHRASE_PREFIX see https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html#multi-match-types
      • fuzziness

        public static final QueryBuildingSetting fuzziness
        see https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html#fuzziness
      • fallbackQuery

        public static final QueryBuildingSetting fallbackQuery
        Used for preFetchQuery to specify, which es-query-builder should be used to search for "unknown" terms. Set it to an existing name of another query-builder. Leave it undefined to ignore such terms (= 0-matches in case all queries are unknown).
      • allowParallelSpellcheck

        public static final QueryBuildingSetting allowParallelSpellcheck
        Setting that can be set to "true" or "false". If true, a spellcheck can be executed with the built query. If spell corrections could be fetched for the given user query and no results where found by the query itself, the query will be executed again with the spell corrections.
      • isQueryWithShingles

        public static final QueryBuildingSetting isQueryWithShingles
        boolean setting to enable the creation and searching for combined terms (shingles)
      • acceptNoResult

        public static final QueryBuildingSetting acceptNoResult
        If set to true, no other query will be used after this one, even if it returned 0 results.
    • Method Detail

      • values

        public static QueryBuildingSetting[] 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 (QueryBuildingSetting c : QueryBuildingSetting.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static QueryBuildingSetting 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