Click or drag to resize

SearchDefinitionBuilderTDocumentQueryStringTField Method (ExpressionFuncTDocument, TField, String, SearchScoreDefinitionTDocument)

Creates a search definition that queries a combination of indexed fields and values.

Namespace:  MongoDB.Driver.Search
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
Syntax
public SearchDefinition<TDocument> QueryString<TField>(
	Expression<Func<TDocument, TField>> defaultPath,
	string query,
	SearchScoreDefinition<TDocument> score = null
)

Parameters

defaultPath
Type: System.Linq.ExpressionsExpressionFuncTDocument, TField
The indexed field to search by default.
query
Type: SystemString
One or more indexed fields and values to search.
score (Optional)
Type: MongoDB.Driver.SearchSearchScoreDefinitionTDocument
The score modifier.

Type Parameters

TField
The type of the field.

Return Value

Type: SearchDefinitionTDocument
A query string search definition.
See Also