PipelineStageDefinitionBuilderVectorSearchTInput Method (FieldDefinitionTInput, QueryVector, Int32, VectorSearchOptionsTInput) |
Creates a $vectorSearch stage.
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax public static PipelineStageDefinition<TInput, TInput> VectorSearch<TInput>(
FieldDefinition<TInput> field,
QueryVector queryVector,
int limit,
VectorSearchOptions<TInput> options = null
)
Public Shared Function VectorSearch(Of TInput) (
field As FieldDefinition(Of TInput),
queryVector As QueryVector,
limit As Integer,
Optional options As VectorSearchOptions(Of TInput) = Nothing
) As PipelineStageDefinition(Of TInput, TInput)
static member VectorSearch :
field : FieldDefinition<'TInput> *
queryVector : QueryVector *
limit : int *
?options : VectorSearchOptions<'TInput>
(* Defaults:
let _options = defaultArg options null
*)
-> PipelineStageDefinition<'TInput, 'TInput>
Parameters
- field
- Type: MongoDB.DriverFieldDefinitionTInput
The field. - queryVector
- Type: MongoDB.DriverQueryVector
The query vector. - limit
- Type: SystemInt32
The limit. - options (Optional)
- Type: MongoDB.DriverVectorSearchOptionsTInput
The options.
Type Parameters
- TInput
- The type of the input documents.
Return Value
Type:
PipelineStageDefinitionTInput,
TInputThe stage.
See Also