NEST by Martijn Laarman and contributors

<PackageReference Include="NEST" Version="0.9.17" />

 FieldQueryBuilder

A query that executes the query string against a field. It is a simplified version of {@link QueryStringQueryBuilder} that simply runs against a single field.
public FieldQueryBuilder(string name, string query)

A query that executes the query string against a field. It is a simplified version of {@link QueryStringQueryBuilder} that simply runs against a single field.

public FieldQueryBuilder(string name, int query)

A query that executes the query string against a field. It is a simplified version of {@link QueryStringQueryBuilder} that simply runs against a single field.

public FieldQueryBuilder(string name, long query)

A query that executes the query string against a field. It is a simplified version of {@link QueryStringQueryBuilder} that simply runs against a single field.

public FieldQueryBuilder(string name, float query)

A query that executes the query string against a field. It is a simplified version of {@link QueryStringQueryBuilder} that simply runs against a single field.

public FieldQueryBuilder(string name, double query)

A query that executes the query string against a field. It is a simplified version of {@link QueryStringQueryBuilder} that simply runs against a single field.

public FieldQueryBuilder(string name, bool query)

A query that executes the query string against a field. It is a simplified version of {@link QueryStringQueryBuilder} that simply runs against a single field.

public FieldQueryBuilder(string name, object query)

A query that executes the query string against a field. It is a simplified version of {@link QueryStringQueryBuilder} that simply runs against a single field.

public FieldQueryBuilder AllowLeadingWildcard(bool allowLeadingWildcard)

Should leading wildcards be allowed or not. Defaults to true.

public FieldQueryBuilder Analyzer(string analyzer)

The optional analyzer used to analyze the query string. Note, if a field has search analyzer defined for it, then it will be used automatically. Defaults to the smart search analyzer.

public FieldQueryBuilder AnalyzeWildcard(bool analyzeWildcard)

Set to true to enable analysis on wildcard and prefix queries.

public void AutoGeneratePhraseQueries(bool autoGeneratePhraseQueries)

Set to true if phrase queries will be automatically generated when the analyzer returns more than one term from whitespace delimited text. NOTE: this behavior may not be suitable for all languages. Set to false if phrase queries should only be generated when surrounded by double quotes.

public FieldQueryBuilder Boost(float boost)

Sets the boost for this query. Documents matching this query will (in addition to the normal weightings) have their score multiplied by the boost provided.

public FieldQueryBuilder DefaultOperator(Operator defaultOperator)

Sets the boolean operator of the query parser used to parse the query string. In default mode ({@link FieldQueryBuilder.Operator#OR}) terms without any modifiers are considered optional: for example capital of Hungary is equal to capital OR of OR Hungary.In {@link FieldQueryBuilder.Operator#AND} mode terms are considered to be in conjunction: the above mentioned query is parsed as capital AND of AND Hungary

public FieldQueryBuilder EnablePositionIncrements(bool enablePositionIncrements)

public FieldQueryBuilder FuzzyMinSim(float fuzzyMinSim)

Set the minimum similarity for fuzzy queries. Default is 0.5f.

public FieldQueryBuilder FuzzyPrefixLength(int fuzzyPrefixLength)

Set the prefix length for fuzzy queries. Default is 0.

public FieldQueryBuilder LowercaseExpandedTerms(bool lowercaseExpandedTerms)

Whether terms of wildcard, prefix, fuzzy and range queries are to be automatically lower-cased or not. Default is true.

public FieldQueryBuilder MinimumShouldMatch(string minimumShouldMatch)

public FieldQueryBuilder PhraseSlop(int phraseSlop)

Sets the default slop for phrases. If zero, then exact phrase matches are required. Default value is zero.

public FieldQueryBuilder Rewrite(string rewrite)

public object ToJsonObject()