Class CreateSearchIndexModel
Defines a search index model using a BsonDocument definition. Consider using CreateVectorSearchIndexModel<TDocument> to build vector indexes without specifying the BSON directly.
public class CreateSearchIndexModel
- Inheritance
-
CreateSearchIndexModel
- Derived
- Inherited Members
Constructors
- CreateSearchIndexModel(string, BsonDocument)
Initializes a new instance of the CreateSearchIndexModel class, passing the index model as a BsonDocument.
- CreateSearchIndexModel(string, SearchIndexType?)
Initializes a new instance of the CreateSearchIndexModel class.
- CreateSearchIndexModel(string, SearchIndexType?, BsonDocument)
Initializes a new instance of the CreateSearchIndexModel class, passing the index model as a BsonDocument.
Properties
- Definition
Gets the index definition, if one was passed to a constructor of this class, otherwise throws.
- Name
Gets the index name.
- Type
Gets the index type.