Method CreateOne
CreateOne(BsonDocument, string, CancellationToken)
Creates a search index.
string CreateOne(BsonDocument definition, string name = null, CancellationToken cancellationToken = default)
Parameters
definitionBsonDocumentThe index definition.
namestringThe index name.
cancellationTokenCancellationTokenThe 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
modelCreateSearchIndexModelThe model defining the index.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- string
The name of the index that was created.