@@ -1547,7 +1547,7 @@ private DropIndexOperation CreateDropOneOperation(string name, DropIndexOptions
15471547 Ensure . IsNotNullOrEmpty ( name , nameof ( name ) ) ;
15481548 if ( name == "*" )
15491549 {
1550- throw new ArgumentException ( "Cannot specify '*' for the index name. Use DropAllAsync to drop all indexes." , "name" ) ;
1550+ throw new ArgumentException ( "Cannot specify '*' for the index name. Use DropAll and DropAllAsync to drop all indexes." , "name" ) ;
15511551 }
15521552
15531553 return new DropIndexOperation ( _collection . _collectionNamespace , name , _collection . _messageEncoderSettings )
@@ -1583,14 +1583,14 @@ public MongoSearchIndexManager(MongoCollectionImpl<TDocument> collection)
15831583 public IEnumerable < string > CreateMany ( IEnumerable < CreateSearchIndexModel > models , CancellationToken cancellationToken = default )
15841584 {
15851585 var operation = CreateCreateIndexesOperation ( models ) ;
1586- var result = _collection . _operationExecutor . ExecuteWriteOperation ( operation , _collection . _writeOperationOptions , null , cancellationToken : cancellationToken ) ;
1586+ var result = _collection . _operationExecutor . ExecuteWriteOperation ( operation , _collection . _writeOperationOptions , cancellationToken : cancellationToken ) ;
15871587 return GetIndexNames ( result ) ;
15881588 }
15891589
15901590 public async Task < IEnumerable < string > > CreateManyAsync ( IEnumerable < CreateSearchIndexModel > models , CancellationToken cancellationToken = default )
15911591 {
15921592 var operation = CreateCreateIndexesOperation ( models ) ;
1593- var result = await _collection . _operationExecutor . ExecuteWriteOperationAsync ( operation , _collection . _writeOperationOptions , null , cancellationToken : cancellationToken ) . ConfigureAwait ( false ) ;
1593+ var result = await _collection . _operationExecutor . ExecuteWriteOperationAsync ( operation , _collection . _writeOperationOptions , cancellationToken : cancellationToken ) . ConfigureAwait ( false ) ;
15941594 return GetIndexNames ( result ) ;
15951595 }
15961596
0 commit comments