C# Class Rubber.DSL.Query.CustomFiltersScoreQueryBuilder

A query that uses a filters with a script associated with them to compute the score.
Inheritance: IQueryBuilder
ファイルを表示 Open project: stephenpope/Rubber

Public Methods

Method Description
Add ( IFilterBuilder filter, float boost ) : CustomFiltersScoreQueryBuilder
Add ( IFilterBuilder filter, string script ) : CustomFiltersScoreQueryBuilder
Boost ( float boost ) : CustomFiltersScoreQueryBuilder

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.

CustomFiltersScoreQueryBuilder ( IQueryBuilder queryBuilder ) : System.Collections.Generic
Lang ( string lang ) : CustomFiltersScoreQueryBuilder

Sets the language of the script.

Param ( string key, object value ) : CustomFiltersScoreQueryBuilder

Additional parameters that can be provided to the script.

Params ( object>.Dictionary parameters ) : CustomFiltersScoreQueryBuilder

Additional parameters that can be provided to the script.

ScoreMode ( string scoreMode ) : CustomFiltersScoreQueryBuilder
ToJsonObject ( ) : object
ToString ( ) : string

Method Details

Add() public method

public Add ( IFilterBuilder filter, float boost ) : CustomFiltersScoreQueryBuilder
filter IFilterBuilder
boost float
return CustomFiltersScoreQueryBuilder

Add() public method

public Add ( IFilterBuilder filter, string script ) : CustomFiltersScoreQueryBuilder
filter IFilterBuilder
script string
return CustomFiltersScoreQueryBuilder

Boost() public method

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 ) : CustomFiltersScoreQueryBuilder
boost float
return CustomFiltersScoreQueryBuilder

CustomFiltersScoreQueryBuilder() public method

public CustomFiltersScoreQueryBuilder ( IQueryBuilder queryBuilder ) : System.Collections.Generic
queryBuilder IQueryBuilder
return System.Collections.Generic

Lang() public method

Sets the language of the script.
public Lang ( string lang ) : CustomFiltersScoreQueryBuilder
lang string
return CustomFiltersScoreQueryBuilder

Param() public method

Additional parameters that can be provided to the script.
public Param ( string key, object value ) : CustomFiltersScoreQueryBuilder
key string
value object
return CustomFiltersScoreQueryBuilder

Params() public method

Additional parameters that can be provided to the script.
public Params ( object>.Dictionary parameters ) : CustomFiltersScoreQueryBuilder
parameters object>.Dictionary
return CustomFiltersScoreQueryBuilder

ScoreMode() public method

public ScoreMode ( string scoreMode ) : CustomFiltersScoreQueryBuilder
scoreMode string
return CustomFiltersScoreQueryBuilder

ToJsonObject() public method

public ToJsonObject ( ) : object
return object

ToString() public method

public ToString ( ) : string
return string