C# Class Rubber.DSL.Query.BoolQueryBuilder

A Query that matches documents matching boolean combinations of other queries.
Inheritance: IQueryBuilder
Afficher le fichier Open project: stephenpope/Rubber

Méthodes publiques

Méthode Description
Boost ( float boost ) : BoolQueryBuilder

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.

DisableCoord ( bool disableCoord ) : BoolQueryBuilder

Disables Similarity#coord(int,int) in scoring. Defaults to false.

HasClauses ( ) : bool

Return true if the query being built has no clause yet.

MinimumNumberShouldMatch ( int minimumNumberShouldMatch ) : BoolQueryBuilder

Specifies a minimum number of the optional (should) boolean clauses which must be satisfied. By default no optional clauses are necessary for a match (unless there are no required clauses). If this method is used, then the specified number of clauses is required. Use of this method is totally independent of specifying that any specific clauses are required (or prohibited). This number will only be compared against the number of matching optional clauses. minimumNumberShouldMatch the number of optional clauses that must match

Must ( IQueryBuilder queryBuilder ) : BoolQueryBuilder

Adds a query that must appear in the matching documents.

MustNot ( IQueryBuilder queryBuilder ) : BoolQueryBuilder

Adds a query that must not appear in the matching documents.

Should ( IQueryBuilder queryBuilder ) : BoolQueryBuilder

Adds a query that should appear in the matching documents. For a boolean query with no MUST clauses one or more SHOULD clauses must match a document for the BooleanQuery to match.

ToJsonObject ( ) : object
ToString ( ) : string

Private Methods

Méthode Description
ArrayToObject ( string field, IList array, object contentObject ) : object

Method Details

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 ) : BoolQueryBuilder
boost float
Résultat BoolQueryBuilder

DisableCoord() public méthode

Disables Similarity#coord(int,int) in scoring. Defaults to false.
public DisableCoord ( bool disableCoord ) : BoolQueryBuilder
disableCoord bool
Résultat BoolQueryBuilder

HasClauses() public méthode

Return true if the query being built has no clause yet.
public HasClauses ( ) : bool
Résultat bool

MinimumNumberShouldMatch() public méthode

Specifies a minimum number of the optional (should) boolean clauses which must be satisfied. By default no optional clauses are necessary for a match (unless there are no required clauses). If this method is used, then the specified number of clauses is required. Use of this method is totally independent of specifying that any specific clauses are required (or prohibited). This number will only be compared against the number of matching optional clauses. minimumNumberShouldMatch the number of optional clauses that must match
public MinimumNumberShouldMatch ( int minimumNumberShouldMatch ) : BoolQueryBuilder
minimumNumberShouldMatch int
Résultat BoolQueryBuilder

Must() public méthode

Adds a query that must appear in the matching documents.
public Must ( IQueryBuilder queryBuilder ) : BoolQueryBuilder
queryBuilder IQueryBuilder
Résultat BoolQueryBuilder

MustNot() public méthode

Adds a query that must not appear in the matching documents.
public MustNot ( IQueryBuilder queryBuilder ) : BoolQueryBuilder
queryBuilder IQueryBuilder
Résultat BoolQueryBuilder

Should() public méthode

Adds a query that should appear in the matching documents. For a boolean query with no MUST clauses one or more SHOULD clauses must match a document for the BooleanQuery to match.
public Should ( IQueryBuilder queryBuilder ) : BoolQueryBuilder
queryBuilder IQueryBuilder
Résultat BoolQueryBuilder

ToJsonObject() public méthode

public ToJsonObject ( ) : object
Résultat object

ToString() public méthode

public ToString ( ) : string
Résultat string