AggregateFluentBaseTResultVectorSearch Method |
Appends a vector search stage.
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax public virtual IAggregateFluent<TResult> VectorSearch(
FieldDefinition<TResult> field,
QueryVector queryVector,
int limit,
VectorSearchOptions<TResult> options = null
)
Public Overridable Function VectorSearch (
field As FieldDefinition(Of TResult),
queryVector As QueryVector,
limit As Integer,
Optional options As VectorSearchOptions(Of TResult) = Nothing
) As IAggregateFluent(Of TResult)
abstract VectorSearch :
field : FieldDefinition<'TResult> *
queryVector : QueryVector *
limit : int *
?options : VectorSearchOptions<'TResult>
(* Defaults:
let _options = defaultArg options null
*)
-> IAggregateFluent<'TResult>
override VectorSearch :
field : FieldDefinition<'TResult> *
queryVector : QueryVector *
limit : int *
?options : VectorSearchOptions<'TResult>
(* Defaults:
let _options = defaultArg options null
*)
-> IAggregateFluent<'TResult>
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:
IAggregateFluentTResultThe fluent aggregate interface.
Implements
IAggregateFluentTResultVectorSearch(FieldDefinitionTResult, QueryVector, Int32, VectorSearchOptionsTResult)See Also