C# Class Rubber.DSL.Query.BoostingQueryBuilder

The BoostingQuery class can be used to effectively demote results that match a given query. Unlike the "NOT" clause, this still selects documents that contain undesirable terms, but reduces their overall score: Query balancedQuery = new BoostingQuery(positiveQuery, negativeQuery, 0.01f); In this scenario the positiveQuery contains the mandatory, desirable criteria which is used to select all matching documents, and the negativeQuery contains the undesirable elements which are simply used to lessen the scores. Documents that match the negativeQuery have their score multiplied by the supplied "boost" parameter, so this should be less than 1 to achieve a demoting effect
Inheritance: IQueryBuilder
Afficher le fichier Open project: stephenpope/Rubber

Méthodes publiques

Méthode Description
Boost ( float boost ) : BoostingQueryBuilder
Negative ( IQueryBuilder negativeQuery ) : BoostingQueryBuilder
NegativeBoost ( float negativeBoost ) : BoostingQueryBuilder
Positive ( IQueryBuilder positiveQuery ) : BoostingQueryBuilder
ToJsonObject ( ) : object
ToString ( ) : string

Method Details

Boost() public méthode

public Boost ( float boost ) : BoostingQueryBuilder
boost float
Résultat BoostingQueryBuilder

Negative() public méthode

public Negative ( IQueryBuilder negativeQuery ) : BoostingQueryBuilder
negativeQuery IQueryBuilder
Résultat BoostingQueryBuilder

NegativeBoost() public méthode

public NegativeBoost ( float negativeBoost ) : BoostingQueryBuilder
negativeBoost float
Résultat BoostingQueryBuilder

Positive() public méthode

public Positive ( IQueryBuilder positiveQuery ) : BoostingQueryBuilder
positiveQuery IQueryBuilder
Résultat BoostingQueryBuilder

ToJsonObject() public méthode

public ToJsonObject ( ) : object
Résultat object

ToString() public méthode

public ToString ( ) : string
Résultat string