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

Method updateSearchIndex

src/collection.ts:1308–1313  ·  view source on GitHub ↗

* Updates a search index by replacing the existing index definition with the provided definition. * * @param name - The name of the search index to update. * @param definition - The new search index definition. * * @remarks Only available when used against a 7.0+ Atlas cluster.

(name: string, definition: Document)

Source from the content-addressed store, hash-verified

1306 * @remarks Only available when used against a 7.0+ Atlas cluster.
1307 */
1308 async updateSearchIndex(name: string, definition: Document): Promise<void> {
1309 return await executeOperation(
1310 this.client,
1311 new UpdateSearchIndexOperation(this as TODO_NODE_3286, name, definition)
1312 );
1313 }
1314}

Calls 1

executeOperationFunction · 0.90

Tested by

no test coverage detected