Method Boost
Boost(double)
Creates a score modifier that multiplies a result's base score by a given number.
public SearchScoreDefinition<TDocument> Boost(double value)
Parameters
value
doubleThe number to multiply the default base score by.
Returns
- SearchScoreDefinition<TDocument>
A boost score modifier.
Boost(SearchPathDefinition<TDocument>, double)
Creates a score modifier that multiples a result's base score by the value of a numeric field in the documents.
public SearchScoreDefinition<TDocument> Boost(SearchPathDefinition<TDocument> path, double undefined = 0)
Parameters
path
SearchPathDefinition<TDocument>The path to the numeric field whose value to multiply the default base score by.
undefined
doubleThe numeric value to substitute if the numeric field is not found in the documents.
Returns
- SearchScoreDefinition<TDocument>
A boost score modifier.
Boost(Expression<Func<TDocument, double>>, double)
Creates a score modifier that multiplies a result's base score by the value of a numeric field in the documents.
public SearchScoreDefinition<TDocument> Boost(Expression<Func<TDocument, double>> path, double undefined = 0)
Parameters
path
Expression<Func<TDocument, double>>The path to the numeric field whose value to multiply the default base score by.
undefined
doubleThe numeric value to substitute if the numeric field is not found in the documents.
Returns
- SearchScoreDefinition<TDocument>
A boost score modifier.