Table of Contents

Method CreateManyAsync

Namespace
MongoDB.Driver.Search
Assembly
MongoDB.Driver.dll

CreateManyAsync(IEnumerable<CreateSearchIndexModel>, CancellationToken)

Creates multiple indexes.

Task<IEnumerable<string>> CreateManyAsync(IEnumerable<CreateSearchIndexModel> models, CancellationToken cancellationToken = default)

Parameters

models IEnumerable<CreateSearchIndexModel>

The models defining each of the indexes.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<IEnumerable<string>>

A Task whose result is an IEnumerable<T> of the names of the indexes that were created.