MCPcopy
hub / github.com/mongodb/node-mongodb-native / createSearchIndexes

Method createSearchIndexes

src/collection.ts:1279–1284  ·  view source on GitHub ↗

* Creates multiple search indexes for the current collection. * * @param descriptions - An array of `SearchIndexDescription`s for the new search indexes. * @returns A promise that resolves to an array of the newly created search index names. * * @remarks Only available when used again

(descriptions: SearchIndexDescription[])

Source from the content-addressed store, hash-verified

1277 * @returns
1278 */
1279 async createSearchIndexes(descriptions: SearchIndexDescription[]): Promise<string[]> {
1280 return await executeOperation(
1281 this.client,
1282 new CreateSearchIndexesOperation(this as TODO_NODE_3286, descriptions)
1283 );
1284 }
1285
1286 /**
1287 * Deletes a search index by index name.

Callers 3

createSearchIndexMethod · 0.95
operations.tsFile · 0.80

Calls 1

executeOperationFunction · 0.90

Tested by

no test coverage detected