C# Class Rubber.DSL.Query.DisMaxQueryBuilder

A query that generates the union of documents produced by its sub-queries, and that scores each document with the maximum score for that document as produced by any sub-query, plus a tie breaking increment for any additional matching sub-queries.
Inheritance: IQueryBuilder
Afficher le fichier Open project: stephenpope/Rubber

Méthodes publiques

Méthode Description
Add ( IQueryBuilder queryBuilder ) : DisMaxQueryBuilder

Add a sub-query to this disjunction.

Boost ( float boost ) : DisMaxQueryBuilder

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.

TieBreaker ( float tieBreaker ) : DisMaxQueryBuilder

The score of each non-maximum disjunct for a document is multiplied by this weight and added into the final score. If non-zero, the value should be small, on the order of 0.1, which says that 10 occurrences of word in a lower-scored field that is also in a higher scored field is just as good as a unique word in the lower scored field (i.e., one that is not in any higher scored field.

ToJsonObject ( ) : object
ToString ( ) : string

Method Details

Add() public méthode

Add a sub-query to this disjunction.
public Add ( IQueryBuilder queryBuilder ) : DisMaxQueryBuilder
queryBuilder IQueryBuilder
Résultat DisMaxQueryBuilder

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

TieBreaker() public méthode

The score of each non-maximum disjunct for a document is multiplied by this weight and added into the final score. If non-zero, the value should be small, on the order of 0.1, which says that 10 occurrences of word in a lower-scored field that is also in a higher scored field is just as good as a unique word in the lower scored field (i.e., one that is not in any higher scored field.
public TieBreaker ( float tieBreaker ) : DisMaxQueryBuilder
tieBreaker float
Résultat DisMaxQueryBuilder

ToJsonObject() public méthode

public ToJsonObject ( ) : object
Résultat object

ToString() public méthode

public ToString ( ) : string
Résultat string