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.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
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