Click or drag to resize

SearchDefinitionBuilderTDocumentEmbeddedDocumentTField Method (ExpressionFuncTDocument, IEnumerableTField, SearchDefinitionTField, SearchScoreDefinitionTDocument)

Creates a search definition that performs a search for documents where the specified query operator is satisfied from a single element of an array of embedded documents specified by path.

Namespace:  MongoDB.Driver.Search
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.21.0+5a9c3311e158910b88195f290e6d4b1b2715d2b2
Syntax
public SearchDefinition<TDocument> EmbeddedDocument<TField>(
	Expression<Func<TDocument, IEnumerable<TField>>> path,
	SearchDefinition<TField> operator,
	SearchScoreDefinition<TDocument> score = null
)

Parameters

path
Type: System.Linq.ExpressionsExpressionFuncTDocument, IEnumerableTField
The indexed field to search.
operator
Type: MongoDB.Driver.SearchSearchDefinitionTField
The operator.
score (Optional)
Type: MongoDB.Driver.SearchSearchScoreDefinitionTDocument
The score modifier.

Type Parameters

TField
The type of the field.

Return Value

Type: SearchDefinitionTDocument
An embeddedDocument search definition.
See Also