Package de.cxp.ocs.config
Enum Class QueryBuildingSetting
- All Implemented Interfaces:
Serializable
,Comparable<QueryBuildingSetting>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIf set to true, no other query will be used after this one, even if it returned 0 results.Setting that can be set to "true" or "false".Analyzer to be used to analyze the input query.Used for preFetchQuery to specify, which es-query-builder should be used to search for "unknown" terms.see https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html#fuzzinessboolean setting to enable the creation and searching for combined terms (shingles)Setting for a boolean value to enable quoting for term-filters introduced by a query-parser.see https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-minimum-should-match.htmlone 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-typesone of OR, ANDSlop value that should be used for the quoted part of the query.Analyzer to be used to analyze the input query that is put into quotes as alternative match.float value between 0 (inclusive) and 1 (inclusive) -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryBuildingSetting
Returns the enum constant of this class with the specified name.static QueryBuildingSetting[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
analyzer
Analyzer to be used to analyze the input query. -
quoteAnalyzer
Analyzer to be used to analyze the input query that is put into quotes as alternative match. -
isTermFiltersQuoted
Setting for a boolean value to enable quoting for term-filters introduced by a query-parser. This only makes sense if a different quoteAnalyzer is used. default: false -
phraseSlop
Slop value that should be used for the quoted part of the query. see https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query-phrase.html -
minShouldMatch
see https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-minimum-should-match.html -
operator
one of OR, AND -
tieBreaker
float value between 0 (inclusive) and 1 (inclusive) -
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
see https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html#fuzziness -
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
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
boolean setting to enable the creation and searching for combined terms (shingles) -
acceptNoResult
If set to true, no other query will be used after this one, even if it returned 0 results.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-