Class QueryStringQuery
A query that uses a query parser in order to parse its content
Inheritance
QueryStringQuery
Assembly: OpenSearch.Client.dll
Syntax
[DataContract]
public class QueryStringQuery : QueryBase, IQueryStringQuery, IQuery
Properties
|
Edit this page
View Source
AllowLeadingWildcard
When set, *
or ?
are allowed as the first character. Defaults to true
.
Declaration
public bool? AllowLeadingWildcard { get; set; }
Property Value
|
Edit this page
View Source
AnalyzeWildcard
By default, wildcards terms in a query are not analyzed.
By setting this value to true
, a best effort will be made to analyze those as well.
Declaration
public bool? AnalyzeWildcard { get; set; }
Property Value
|
Edit this page
View Source
Analyzer
The analyzer name used to analyze the query
Declaration
public string Analyzer { get; set; }
Property Value
|
Edit this page
View Source
AutoGenerateSynonymsPhraseQuery
Declaration
public bool? AutoGenerateSynonymsPhraseQuery { get; set; }
Property Value
|
Edit this page
View Source
Conditionless
Declaration
protected override bool Conditionless { get; }
Property Value
Overrides
|
Edit this page
View Source
DefaultField
The default field for query terms if no prefix field is specified.
Defaults to the index.query.default_field index settings, which in turn defaults to *.
- extracts all fields in the mapping that are eligible to term queries and filters the metadata fields.
All extracted fields are then combined to build a query when no prefix field is provided.
Declaration
public Field DefaultField { get; set; }
Property Value
|
Edit this page
View Source
DefaultOperator
The default operator used if no explicit operator is specified.
The default operator is Or
Declaration
public Operator? DefaultOperator { get; set; }
Property Value
|
Edit this page
View Source
EnablePositionIncrements
Set to true
to enable position increments in result queries. Defaults to true
.
Declaration
public bool? EnablePositionIncrements { get; set; }
Property Value
|
Edit this page
View Source
Escape
Enables escaping of the query
Declaration
public bool? Escape { get; set; }
Property Value
|
Edit this page
View Source
Fields
The fields to perform the parsed query against.
Defaults to the index.query.default_field
index settings, which in turn defaults to
.
extracts all fields in the mapping that are eligible to term queries and filters the metadata fields.
Declaration
public Fields Fields { get; set; }
Property Value
|
Edit this page
View Source
Fuzziness
Set the fuzziness for fuzzy queries. Defaults to Auto
Declaration
public Fuzziness Fuzziness { get; set; }
Property Value
|
Edit this page
View Source
FuzzyMaxExpansions
Controls the number of terms fuzzy queries will expand to. Defaults to 50
Declaration
public int? FuzzyMaxExpansions { get; set; }
Property Value
|
Edit this page
View Source
FuzzyPrefixLength
Set the prefix length for fuzzy queries. Default is 0
.
Declaration
public int? FuzzyPrefixLength { get; set; }
Property Value
|
Edit this page
View Source
FuzzyRewrite
Declaration
public MultiTermQueryRewrite FuzzyRewrite { get; set; }
Property Value
|
Edit this page
View Source
FuzzyTranspositions
Sets whether transpositions are supported in fuzzy queries.
The default metric used by fuzzy queries to determine a match is the Damerau-Levenshtein
distance formula which supports transpositions. Setting transposition to false will
switch to classic Levenshtein distance.
If not set, Damerau-Levenshtein distance metric will be used.
Declaration
public bool? FuzzyTranspositions { get; set; }
Property Value
|
Edit this page
View Source
Lenient
If set to true
will cause format based failures (like providing text to a numeric field)
to be ignored
Declaration
public bool? Lenient { get; set; }
Property Value
|
Edit this page
View Source
MaximumDeterminizedStates
Limit on how many automaton states regexp queries are allowed to create.
This protects against too-difficult (e.g. exponentially hard) regexps.
Defaults to 10000
.
Declaration
public int? MaximumDeterminizedStates { get; set; }
Property Value
|
Edit this page
View Source
MinimumShouldMatch
A value controlling how many "should" clauses in the resulting boolean query should match.
It can be an absolute value, a percentage or a combination of both.
Declaration
public MinimumShouldMatch MinimumShouldMatch { get; set; }
Property Value
|
Edit this page
View Source
PhraseSlop
Sets the default slop for phrases. If zero, then exact phrase matches are required.
Default value is 0
.
Declaration
public double? PhraseSlop { get; set; }
Property Value
|
Edit this page
View Source
Query
Declaration
public string Query { get; set; }
Property Value
|
Edit this page
View Source
QuoteAnalyzer
The name of the analyzer that is used to analyze quoted phrases in the query string.
For those parts, it overrides other analyzers that are set using the analyzer parameter
or the search_quote_analyzer setting.
Declaration
public string QuoteAnalyzer { get; set; }
Property Value
|
Edit this page
View Source
QuoteFieldSuffix
A suffix to append to fields for quoted parts of the query string.
This allows to use a field that has a different analysis chain for exact matching.
Declaration
public string QuoteFieldSuffix { get; set; }
Property Value
|
Edit this page
View Source
Rewrite
Controls how a multi term query such as a wildcard or prefix query, is rewritten.
Declaration
public MultiTermQueryRewrite Rewrite { get; set; }
Property Value
|
Edit this page
View Source
TieBreaker
The disjunction max tie breaker for multi fields. Defaults to 0
Declaration
public double? TieBreaker { get; set; }
Property Value
|
Edit this page
View Source
TimeZone
Time Zone to be applied to any range query related to dates.
Declaration
public string TimeZone { get; set; }
Property Value
|
Edit this page
View Source
Type
How the fields should be combined to build the text query.
Default is BestFields
Declaration
public TextQueryType? Type { get; set; }
Property Value
Implements
Extension Methods