Constructor CreateSearchIndexModel
CreateSearchIndexModel(string, BsonDocument)
Initializes a new instance of the CreateSearchIndexModel class, passing the index model as a BsonDocument.
public CreateSearchIndexModel(string name, BsonDocument definition)
Parameters
namestringThe index name.
definitionBsonDocumentThe index definition.
Remarks
Consider using CreateVectorSearchIndexModel<TDocument> to build vector indexes without specifying the BSON directly.
CreateSearchIndexModel(string, SearchIndexType?, BsonDocument)
Initializes a new instance of the CreateSearchIndexModel class, passing the index model as a BsonDocument.
public CreateSearchIndexModel(string name, SearchIndexType? type, BsonDocument definition)
Parameters
namestringThe index name.
typeSearchIndexType?The index type.
definitionBsonDocumentThe index definition.
Remarks
Consider using CreateVectorSearchIndexModel<TDocument> to build vector indexes without specifying the BSON directly.
CreateSearchIndexModel(string, SearchIndexType?)
Initializes a new instance of the CreateSearchIndexModel class.
protected CreateSearchIndexModel(string name, SearchIndexType? type)
Parameters
namestringThe index name.
typeSearchIndexType?The index type.