@@ -1547,7 +1547,7 @@ private DropIndexOperation CreateDropOneOperation(string name, DropIndexOptions
1547
1547
Ensure . IsNotNullOrEmpty ( name , nameof ( name ) ) ;
1548
1548
if ( name == "*" )
1549
1549
{
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" ) ;
1551
1551
}
1552
1552
1553
1553
return new DropIndexOperation ( _collection . _collectionNamespace , name , _collection . _messageEncoderSettings )
@@ -1583,14 +1583,14 @@ public MongoSearchIndexManager(MongoCollectionImpl<TDocument> collection)
1583
1583
public IEnumerable < string > CreateMany ( IEnumerable < CreateSearchIndexModel > models , CancellationToken cancellationToken = default )
1584
1584
{
1585
1585
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 ) ;
1587
1587
return GetIndexNames ( result ) ;
1588
1588
}
1589
1589
1590
1590
public async Task < IEnumerable < string > > CreateManyAsync ( IEnumerable < CreateSearchIndexModel > models , CancellationToken cancellationToken = default )
1591
1591
{
1592
1592
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 ) ;
1594
1594
return GetIndexNames ( result ) ;
1595
1595
}
1596
1596
0 commit comments