Click or drag to resize

AggregateFluentBaseTResultSearch Method

Appends a $search stage to the pipeline.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntax
public virtual IAggregateFluent<TResult> Search(
	SearchDefinition<TResult> searchDefinition,
	SearchHighlightOptions<TResult> highlight = null,
	string indexName = null,
	SearchCountOptions count = null,
	bool returnStoredSource = false
)

Parameters

searchDefinition
Type: MongoDB.Driver.SearchSearchDefinitionTResult
The search definition.
highlight (Optional)
Type: MongoDB.Driver.SearchSearchHighlightOptionsTResult
The highlight options.
indexName (Optional)
Type: SystemString
The index name.
count (Optional)
Type: MongoDB.Driver.SearchSearchCountOptions
The count options.
returnStoredSource (Optional)
Type: SystemBoolean
Flag that specifies whether to perform a full document lookup on the backend database or return only stored source fields directly from Atlas Search.

Return Value

Type: IAggregateFluentTResult
The fluent aggregate interface.

Implements

IAggregateFluentTResultSearch(SearchDefinitionTResult, SearchHighlightOptionsTResult, String, SearchCountOptions, Boolean)
See Also