Skip to content

Commit 87c2240

Browse files
committed
avs changes (just while im in the pr)
1 parent 3121a01 commit 87c2240

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

source/indexes/atlas-search-index.txt

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pre-filter your data.
3939
You can call the following methods on a collection to manage your Atlas
4040
Search and Vector Search indexes:
4141

42-
- ``createSearchIndex()``
42+
- ``createSearchIndex()`` *(valid for Atlas Search indexes only)*
4343
- ``createSearchIndexes()``
4444
- ``listSearchIndexes()``
4545
- ``updateSearchIndex()``
@@ -63,8 +63,16 @@ Create a Search Index
6363

6464
You can use the `createSearchIndex()
6565
<{+api+}/com.mongodb.kotlin.client/-mongo-collection/create-search-index.html>`__
66-
and the `createSearchIndexes() <{+api+}/com.mongodb.kotlin.client/-mongo-collection/create-search-indexes.html>`__
67-
methods to create one or more Atlas Search or Vector Search indexes.
66+
method to create a single Atlas Search index. You *cannot* use this method to
67+
create a Vector Search index.
68+
69+
You can use the `createSearchIndexes()
70+
<{+api+}/com.mongodb.kotlin.client/-mongo-collection/create-search-indexes.html>`__
71+
method to create multiple Atlas Search or Vector Search
72+
indexes. You must create a `SearchIndexModel
73+
<{+core-api+}/com/mongodb/client/model/SearchIndexModel.html>`__
74+
instance for each index, then pass a list of ``SearchIndexModel``
75+
instances to the ``createSearchIndexes()`` method.
6876

6977
The following code example shows how to create an Atlas Search index:
7078

@@ -74,11 +82,6 @@ The following code example shows how to create an Atlas Search index:
7482
:end-before: end-create-search-index
7583
:dedent:
7684

77-
To create multiple Search or Vector Search indexes, you must create a
78-
`SearchIndexModel
79-
<{+core-api+}/com/mongodb/client/model/SearchIndexModel.html>`__
80-
instance for each index.
81-
8285
The following code example shows how to create Atlas Search and
8386
Vector Search indexes in one call:
8487

0 commit comments

Comments
 (0)