Table of Contents

Method CreateMany

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

CreateMany(IEnumerable<CreateSearchIndexModel>, CancellationToken)

Creates multiple indexes.

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

Parameters

models IEnumerable<CreateSearchIndexModel>

The models defining each of the indexes.

cancellationToken CancellationToken

The cancellation token.

Returns

IEnumerable<string>

An IEnumerable<T> of the names of the indexes that were created.