@@ -39,7 +39,7 @@ pre-filter your data.
39
39
You can call the following methods on a collection to manage your Atlas
40
40
Search and Vector Search indexes:
41
41
42
- - ``createSearchIndex()``
42
+ - ``createSearchIndex()`` *(valid for Atlas Search indexes only)*
43
43
- ``createSearchIndexes()``
44
44
- ``listSearchIndexes()``
45
45
- ``updateSearchIndex()``
@@ -63,8 +63,16 @@ Create a Search Index
63
63
64
64
You can use the `createSearchIndex()
65
65
<{+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.
68
76
69
77
The following code example shows how to create an Atlas Search index:
70
78
@@ -74,11 +82,6 @@ The following code example shows how to create an Atlas Search index:
74
82
:end-before: end-create-search-index
75
83
:dedent:
76
84
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
-
82
85
The following code example shows how to create Atlas Search and
83
86
Vector Search indexes in one call:
84
87
0 commit comments