Click or drag to resize

SearchScoreFunctionBuilderTDocumentPath Method (SearchPathDefinitionTDocument, 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.21.0+5a9c3311e158910b88195f290e6d4b1b2715d2b2
Syntax
public SearchScoreFunction<TDocument> Path(
	SearchPathDefinition<TDocument> path,
	double undefined = 0
)

Parameters

path
Type: MongoDB.Driver.SearchSearchPathDefinitionTDocument
The path to the numeric field.
undefined (Optional)
Type: SystemDouble
The value to use if the numeric field specified using path is missing in the document.

Return Value

Type: SearchScoreFunctionTDocument
A path score function.
See Also