C# Class Rubber.DSL.Query.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.
Inheritance: IQueryBuilder
Afficher le fichier Open project: stephenpope/Rubber

Méthodes publiques

Méthode Description
AllowLeadingWildcard ( bool allowLeadingWildcard ) : FieldQueryBuilder

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

AnalyzeWildcard ( bool analyzeWildcard ) : FieldQueryBuilder

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

Analyzer ( string analyzer ) : FieldQueryBuilder

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.

AutoGeneratePhraseQueries ( bool autoGeneratePhraseQueries ) : void

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.

Boost ( float boost ) : FieldQueryBuilder

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.

DefaultOperator ( Operator defaultOperator ) : FieldQueryBuilder

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

EnablePositionIncrements ( bool enablePositionIncrements ) : FieldQueryBuilder
FieldQueryBuilder ( string name, bool query ) : System

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.

FieldQueryBuilder ( string name, double query ) : System

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.

FieldQueryBuilder ( string name, float query ) : System

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.

FieldQueryBuilder ( string name, int query ) : System

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.

FieldQueryBuilder ( string name, long query ) : System

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.

FieldQueryBuilder ( string name, object query ) : System

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.

FieldQueryBuilder ( string name, string query ) : System

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.

FuzzyMinSim ( float fuzzyMinSim ) : FieldQueryBuilder

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

FuzzyPrefixLength ( int fuzzyPrefixLength ) : FieldQueryBuilder

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

LowercaseExpandedTerms ( bool lowercaseExpandedTerms ) : FieldQueryBuilder

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

MinimumShouldMatch ( string minimumShouldMatch ) : FieldQueryBuilder
PhraseSlop ( int phraseSlop ) : FieldQueryBuilder

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

Rewrite ( string rewrite ) : FieldQueryBuilder
ToJsonObject ( ) : object
ToString ( ) : string

Method Details

AllowLeadingWildcard() public méthode

Should leading wildcards be allowed or not. Defaults to true.
public AllowLeadingWildcard ( bool allowLeadingWildcard ) : FieldQueryBuilder
allowLeadingWildcard bool
Résultat FieldQueryBuilder

AnalyzeWildcard() public méthode

Set to true to enable analysis on wildcard and prefix queries.
public AnalyzeWildcard ( bool analyzeWildcard ) : FieldQueryBuilder
analyzeWildcard bool
Résultat FieldQueryBuilder

Analyzer() public méthode

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 Analyzer ( string analyzer ) : FieldQueryBuilder
analyzer string
Résultat FieldQueryBuilder

AutoGeneratePhraseQueries() public méthode

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 AutoGeneratePhraseQueries ( bool autoGeneratePhraseQueries ) : void
autoGeneratePhraseQueries bool
Résultat void

Boost() public méthode

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 Boost ( float boost ) : FieldQueryBuilder
boost float
Résultat FieldQueryBuilder

DefaultOperator() public méthode

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 DefaultOperator ( Operator defaultOperator ) : FieldQueryBuilder
defaultOperator Operator
Résultat FieldQueryBuilder

EnablePositionIncrements() public méthode

public EnablePositionIncrements ( bool enablePositionIncrements ) : FieldQueryBuilder
enablePositionIncrements bool
Résultat FieldQueryBuilder

FieldQueryBuilder() public méthode

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 ) : System
name string The name of the field
query bool The query string
Résultat System

FieldQueryBuilder() public méthode

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 ) : System
name string The name of the field
query double The query string
Résultat System

FieldQueryBuilder() public méthode

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 ) : System
name string The name of the field
query float The query string
Résultat System

FieldQueryBuilder() public méthode

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 ) : System
name string The name of the field
query int The query string
Résultat System

FieldQueryBuilder() public méthode

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 ) : System
name string The name of the field
query long The query string
Résultat System

FieldQueryBuilder() public méthode

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 ) : System
name string The name of the field
query object The query string
Résultat System

FieldQueryBuilder() public méthode

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 ) : System
name string The name of the field
query string The query string
Résultat System

FuzzyMinSim() public méthode

Set the minimum similarity for fuzzy queries. Default is 0.5f.
public FuzzyMinSim ( float fuzzyMinSim ) : FieldQueryBuilder
fuzzyMinSim float
Résultat FieldQueryBuilder

FuzzyPrefixLength() public méthode

Set the prefix length for fuzzy queries. Default is 0.
public FuzzyPrefixLength ( int fuzzyPrefixLength ) : FieldQueryBuilder
fuzzyPrefixLength int
Résultat FieldQueryBuilder

LowercaseExpandedTerms() public méthode

Whether terms of wildcard, prefix, fuzzy and range queries are to be automatically lower-cased or not. Default is true.
public LowercaseExpandedTerms ( bool lowercaseExpandedTerms ) : FieldQueryBuilder
lowercaseExpandedTerms bool
Résultat FieldQueryBuilder

MinimumShouldMatch() public méthode

public MinimumShouldMatch ( string minimumShouldMatch ) : FieldQueryBuilder
minimumShouldMatch string
Résultat FieldQueryBuilder

PhraseSlop() public méthode

Sets the default slop for phrases. If zero, then exact phrase matches are required. Default value is zero.
public PhraseSlop ( int phraseSlop ) : FieldQueryBuilder
phraseSlop int
Résultat FieldQueryBuilder

Rewrite() public méthode

public Rewrite ( string rewrite ) : FieldQueryBuilder
rewrite string
Résultat FieldQueryBuilder

ToJsonObject() public méthode

public ToJsonObject ( ) : object
Résultat object

ToString() public méthode

public ToString ( ) : string
Résultat string