Click or drag to resize

SearchScoreFunctionBuilder<TDocument>.Path Method (SearchPathDefinition<TDocument>, Double)

Creates a function that incorporates an indexed numeric field value into the score.

Namespace:  MongoDB.Driver.Search
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntax
public SearchScoreFunction<TDocument> Path(
	SearchPathDefinition<TDocument> path,
	double undefined = 0
)

Parameters

path
Type: MongoDB.Driver.Search.SearchPathDefinition<TDocument>
The path to the numeric field.
undefined (Optional)
Type: System.Double
The value to use if the numeric field specified using path is missing in the document.

Return Value

Type: SearchScoreFunction<TDocument>
A path score function.
See Also