Skip to content

Commit 2fd7ace

Browse files
committed
Merge branch 'master' of github.com:mongodb/docs-java into v5.2
2 parents aac3f1c + 802bc91 commit 2fd7ace

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

source/fundamentals/indexes.txt

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ embeddings stored in MongoDB Atlas. To learn more about Atlas Vector Search, see
225225
You can call the following methods on a collection to manage your Atlas
226226
Search and Vector Search indexes:
227227

228-
- ``createSearchIndex()``
228+
- ``createSearchIndex()`` *(valid for Atlas Search indexes only)*
229229
- ``createSearchIndexes()``
230230
- ``listSearchIndexes()``
231231
- ``updateSearchIndex()``
@@ -244,10 +244,10 @@ each of the preceding methods.
244244
Create a Search Index
245245
+++++++++++++++++++++
246246

247-
You can use the `createSearchIndex() <{+api+}/apidocs/mongodb-driver-sync/com/mongodb/client/MongoCollection.html#createSearchIndex(org.bson.conversions.Bson)>`__
248-
and the
249-
`createSearchIndexes() <{+api+}/apidocs/mongodb-driver-sync/com/mongodb/client/MongoCollection.html#createSearchIndexes(java.util.List)>`__
250-
methods to create Atlas Search and Vector Search indexes.
247+
You can use the `createSearchIndex()
248+
<{+api+}/apidocs/mongodb-driver-sync/com/mongodb/client/MongoCollection.html#createSearchIndex(org.bson.conversions.Bson)>`__
249+
method to create an Atlas Search index. You *cannot* use this method to create a
250+
Vector Search index.
251251

252252
The following code example shows how to create an Atlas Search index:
253253

@@ -257,7 +257,10 @@ The following code example shows how to create an Atlas Search index:
257257
:start-after: start create-search-index
258258
:end-before: end create-search-index
259259

260-
To create multiple Search or Vector Search indexes, you must create a
260+
You can use the
261+
`createSearchIndexes() <{+api+}/apidocs/mongodb-driver-sync/com/mongodb/client/MongoCollection.html#createSearchIndexes(java.util.List)>`__
262+
method to create multiple Atlas Search indexes or one or more Vector Search
263+
indexes. You must create and pass a
261264
`SearchIndexModel
262265
<{+api+}/apidocs/mongodb-driver-core/com/mongodb/client/model/SearchIndexModel.html>`__
263266
instance for each index.
@@ -606,4 +609,5 @@ For prior versions of MongoDB, pass "*" as a parameter to your call to
606609
For more information about the methods in this section, see the following API Documentation:
607610

608611
- `dropIndex() <{+api+}/apidocs/mongodb-driver-sync/com/mongodb/client/MongoCollection.html#dropIndex(java.lang.String)>`__
609-
- `dropIndexes() <{+api+}/apidocs/mongodb-driver-sync/com/mongodb/client/MongoCollection.html#dropIndexes()>`__
612+
- `dropIndexes()
613+
<{+api+}/apidocs/mongodb-driver-sync/com/mongodb/client/MongoCollection.html#dropIndexes()>`__

0 commit comments

Comments
 (0)