SearchDefinitionBuilderTDocumentEqualsTField Method (ExpressionFuncTDocument, TField, TField, SearchScoreDefinitionTDocument) | 
 
            Creates a search definition that queries for documents where an indexed field is equal
            to the specified value.
            Supported value types are boolean, numeric, ObjectId and date.
            
 
    Namespace: 
   MongoDB.Driver.Search
    Assembly:
   MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
Syntaxpublic SearchDefinition<TDocument> Equals<TField>(
	Expression<Func<TDocument, TField>> path,
	TField value,
	SearchScoreDefinition<TDocument> score = null
)
where TField : struct, new(), IComparable<TField>
Public Function Equals(Of TField As {Structure, New, IComparable(Of TField)}) ( 
	path As Expression(Of Func(Of TDocument, TField)),
	value As TField,
	Optional score As SearchScoreDefinition(Of TDocument) = Nothing
) As SearchDefinition(Of TDocument)member Equals : 
        path : Expression<Func<'TDocument, 'TField>> * 
        value : 'TField * 
        ?score : SearchScoreDefinition<'TDocument> 
(* Defaults:
        let _score = defaultArg score null
*)
-> SearchDefinition<'TDocument>  when 'TField : struct, new() and IComparable<'TField>
Parameters
- path
 - Type: System.Linq.ExpressionsExpressionFuncTDocument, TField
The indexed field to search. - value
 - Type: TField
The value to query for. - score (Optional)
 - Type: MongoDB.Driver.SearchSearchScoreDefinitionTDocument
The score modifier. 
Type Parameters
- TField
 [Missing <typeparam name="TField"/> documentation for "M:MongoDB.Driver.Search.SearchDefinitionBuilder`1.Equals``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},``0,MongoDB.Driver.Search.SearchScoreDefinition{`0})"]
Return Value
Type: 
SearchDefinitionTDocumentAn equality search definition.
See Also