@@ -36,7 +36,7 @@ date, objectId, numeric, string, or UUID values that you want to use to
36
36
pre-filter your data.
37
37
38
38
You can call the following methods on a collection to manage your Atlas Search
39
- indexes:
39
+ and vector Search indexes:
40
40
41
41
- ``create_search_index()``
42
42
- ``create_search_indexes()``
@@ -72,18 +72,18 @@ The following code example shows how to create a single Atlas Search index:
72
72
:end-before: end-create-search-index
73
73
74
74
The following code example shows how to create a single Atlas Vector Search index
75
- using the `SearchIndexModel <{+api-root+}pymongo/operations.html#pymongo.operations.SearchIndexModel>`__
75
+ by using the `SearchIndexModel <{+api-root+}pymongo/operations.html#pymongo.operations.SearchIndexModel>`__
76
76
object:
77
77
78
78
.. literalinclude:: /includes/indexes/indexes.py
79
79
:language: python
80
80
:start-after: start-create-vector-search-index
81
81
:end-before: end-create-vector-search-index
82
82
83
- You can use `create_search_indexes() <{+api-root+}pymongo/collection.html#pymongo.collection.Collection.create_search_indexes>`__
84
- to create multiple indexes. These indexes can be Atlas Search indexes or Atlas
85
- Vector Search indexes. ``create_search_indexes()`` requires the ``SearchIndexModel``
86
- object .
83
+ You can use the `create_search_indexes() <{+api-root+}pymongo/collection.html#pymongo.collection.Collection.create_search_indexes>`__
84
+ method to create multiple indexes. These indexes can be Atlas Search or
85
+ Vector Search indexes. The ``create_search_indexes()`` method takes a list of
86
+ ``SearchIndexModel`` objects that correspond to each index you want to create .
87
87
88
88
The following code example shows how to create an Atlas Search index and an Atlas
89
89
Vector Search index:
@@ -100,7 +100,7 @@ List Search Indexes
100
100
101
101
You can use the
102
102
`list_search_indexes() <{+api-root+}pymongo/collection.html#pymongo.collection.Collection.list_search_indexes>`__
103
- method to return the Atlas Search indexes and Atlas Vector Search indexes
103
+ method to get information about the Atlas Search and Vector Search indexes
104
104
of a collection.
105
105
106
106
The following code example shows how to print a list of the search indexes of
@@ -119,7 +119,7 @@ Update a Search Index
119
119
120
120
You can use the
121
121
`update_search_index() <{+api-root+}pymongo/collection.html#pymongo.collection.Collection.update_search_index>`__
122
- method to update an Atlas Search index or Atlas Vector Search index.
122
+ method to update an Atlas Search or Vector Search index.
123
123
124
124
The following code example shows how to update an Atlas Search index:
125
125
@@ -144,7 +144,7 @@ Delete a Search Index
144
144
145
145
You can use the
146
146
`drop_search_index() <{+api-root+}pymongo/collection.html#pymongo.collection.Collection.drop_search_index>`__
147
- method to remove an Atlas Search index or Atlas Vector Search index.
147
+ method to remove an Atlas Search or Vector Search index.
148
148
149
149
The following code shows how to delete a search index from a collection:
150
150
0 commit comments