diff --git a/source/fundamentals/indexes.txt b/source/fundamentals/indexes.txt index 12be41ad..c095a6dc 100644 --- a/source/fundamentals/indexes.txt +++ b/source/fundamentals/indexes.txt @@ -241,7 +241,7 @@ embeddings stored in MongoDB Atlas. To learn more about Atlas Vector Search, see You can call the following methods on a collection to manage your Atlas Search and Vector Search indexes: -- ``createSearchIndex()`` +- ``createSearchIndex()`` *(valid for Search indexes only)* - ``createSearchIndexes()`` - ``listSearchIndexes()`` - ``updateSearchIndex()`` @@ -261,9 +261,16 @@ Create a Search Index +++++++++++++++++++++ You can use the `createSearchIndex() <{+api+}/apidocs/mongodb-driver-kotlin-coroutine/mongodb-driver-kotlin-coroutine/com.mongodb.kotlin.client.coroutine/-mongo-collection/create-search-index.html>`__ -and `createSearchIndexes() <{+api+}/apidocs/mongodb-driver-kotlin-coroutine/mongodb-driver-kotlin-coroutine/com.mongodb.kotlin.client.coroutine/-mongo-collection/create-search-indexes.html>`__ -methods to create Atlas Search and Vector Search indexes on a -collection. +method to create a single Atlas Search index. You *cannot* use this method to +create a Vector Search index. + +You can use the +`createSearchIndexes() <{+api+}/apidocs/mongodb-driver-kotlin-coroutine/mongodb-driver-kotlin-coroutine/com.mongodb.kotlin.client.coroutine/-mongo-collection/create-search-indexes.html>`__ +method to create multiple Atlas Search or Vector Search +indexes. You must create a +`SearchIndexModel +<{+api+}/apidocs/mongodb-driver-core/com/mongodb/client/model/SearchIndexModel.html>`__ +instance for each index, then pass a list of ``SearchIndexModel`` instances to the ``createSearchIndexes()`` method. The following code example shows how to create an Atlas Search index: