Click or drag to resize

IAggregateFluentTResultVectorSearch Method

Appends a vector search stage.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax
IAggregateFluent<TResult> VectorSearch(
	FieldDefinition<TResult> field,
	QueryVector queryVector,
	int limit,
	VectorSearchOptions<TResult> options = null
)

Parameters

field
Type: MongoDB.DriverFieldDefinitionTResult
The field.
queryVector
Type: MongoDB.DriverQueryVector
The query vector.
limit
Type: SystemInt32
The limit.
options (Optional)
Type: MongoDB.DriverVectorSearchOptionsTResult
The vector search options.

Return Value

Type: IAggregateFluentTResult
The fluent aggregate interface.
See Also