Table of Contents

Class CreateVectorSearchIndexModelBase<TDocument>

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Defines common parts of a vector index model using strongly-typed C# APIs.

public abstract class CreateVectorSearchIndexModelBase<TDocument> : CreateSearchIndexModel

Type Parameters

TDocument
Inheritance
CreateVectorSearchIndexModelBase<TDocument>
Derived
Inherited Members

Constructors

CreateVectorSearchIndexModelBase(FieldDefinition<TDocument>, string, params FieldDefinition<TDocument>[])

Initializes a new instance of the CreateVectorSearchIndexModelBase<TDocument> class for a vector index where the vector embeddings are created manually. The required options for VectorSimilarity and the number of vector dimensions are passed to the constructor.

Properties

Field

The field containing the vectors to index.

FilterFields

Fields that may be used as filters in the vector query.