Method CreateOne
CreateOne(BsonDocument, string, CancellationToken)
Creates a search index.
string CreateOne(BsonDocument definition, string name = null, CancellationToken cancellationToken = default)
Parameters
definition
BsonDocumentThe index definition.
name
stringThe index name.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- string
The name of the index that was created.
CreateOne(CreateSearchIndexModel, CancellationToken)
Creates a search index.
string CreateOne(CreateSearchIndexModel model, CancellationToken cancellationToken = default)
Parameters
model
CreateSearchIndexModelThe model defining the index.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- string
The name of the index that was created.