Method Path
Path(SearchPathDefinition<TDocument>, double)
Creates a function that incorporates an indexed numeric field value into the score.
public SearchScoreFunction<TDocument> Path(SearchPathDefinition<TDocument> path, double undefined = 0)
Parameters
pathSearchPathDefinition<TDocument>The path to the numeric field.
undefineddoubleThe value to use if the numeric field specified using
pathis missing in the document.
Returns
- SearchScoreFunction<TDocument>
A path score function.
Path(Expression<Func<TDocument, double>>, double)
Creates a function that incorporates an indexed numeric field value into the score.
public SearchScoreFunction<TDocument> Path(Expression<Func<TDocument, double>> path, double undefined = 0)
Parameters
pathExpression<Func<TDocument, double>>The path to the numeric field.
undefineddoubleThe value to use if the numeric field specified using
pathis missing in the document.
Returns
- SearchScoreFunction<TDocument>
A path score function.