C# Class Rubber.DSL.Query.CustomScoreQueryBuilder

A query that uses a script to compute the score.
Inheritance: IQueryBuilder
Show file Open project: stephenpope/Rubber

Public Methods

Method Description
Boost ( float boost ) : CustomScoreQueryBuilder

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.

CustomScoreQueryBuilder ( IQueryBuilder queryBuilder ) : System

A query that simply applies the boost factor to another query (multiply it).

Lang ( string lang ) : CustomScoreQueryBuilder

Sets the language of the script.

Param ( string name, object value ) : CustomScoreQueryBuilder

Additional parameters that can be provided to the script.

Params ( object>.Dictionary parameters ) : CustomScoreQueryBuilder

Additional parameters that can be provided to the script.

Script ( string script ) : CustomScoreQueryBuilder
ToJsonObject ( ) : object
ToString ( ) : string

Method Details

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

CustomScoreQueryBuilder() public method

A query that simply applies the boost factor to another query (multiply it).
public CustomScoreQueryBuilder ( IQueryBuilder queryBuilder ) : System
queryBuilder IQueryBuilder The query to apply the boost factor to.
return System

Lang() public method

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

Param() public method

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

Params() public method

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

Script() public method

public Script ( string script ) : CustomScoreQueryBuilder
script string
return CustomScoreQueryBuilder

ToJsonObject() public method

public ToJsonObject ( ) : object
return object

ToString() public method

public ToString ( ) : string
return string