Click or drag to resize

SearchDefinitionBuilderTDocumentEmbeddedDocumentTField Method (FieldDefinitionTDocument, 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>(
	FieldDefinition<TDocument, IEnumerable<TField>> path,
	SearchDefinition<TField> operator,
	SearchScoreDefinition<TDocument> score = null
)

Parameters

path
Type: MongoDB.DriverFieldDefinitionTDocument, 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