Method CreateOneAsync
CreateOneAsync(BsonDocument, string, CancellationToken)
Creates a search index.
Task<string> CreateOneAsync(BsonDocument definition, string name = null, CancellationToken cancellationToken = default)
Parameters
definition
BsonDocumentThe index definition.
name
stringThe index name.
cancellationToken
CancellationTokenThe cancellation token.
Returns
CreateOneAsync(CreateSearchIndexModel, CancellationToken)
Creates a search index.
Task<string> CreateOneAsync(CreateSearchIndexModel model, CancellationToken cancellationToken = default)
Parameters
model
CreateSearchIndexModelThe model defining the index.
cancellationToken
CancellationTokenThe cancellation token.