1
1
.. _kotlin-sync-atlas-search-index:
2
+ .. _kotlin-sync-search-avs-indexes:
2
3
3
- ====================
4
- Atlas Search Indexes
5
- ====================
4
+ ======================================
5
+ Atlas Search and Vector Search Indexes
6
+ ======================================
6
7
7
8
.. contents:: On this page
8
9
:local:
@@ -20,12 +21,23 @@ Atlas Search Indexes
20
21
Overview
21
22
--------
22
23
23
- :atlas:`Atlas Search </atlas-search>` enables you to perform full-text searches on
24
+ You can programmatically manage your :atlas:`Atlas Search
25
+ </atlas-search>` and :atlas:`Atlas Vector Search
26
+ </atlas-vector-search/vector-search-overview/>` indexes by using the
27
+ {+driver-short+}.
28
+
29
+ Atlas Search enables you to perform full-text searches on
24
30
collections hosted on MongoDB Atlas. Atlas Search indexes specify the behavior of
25
31
the search and which fields to index.
26
32
27
- You can call the following methods on a collection to manage your Atlas Search
28
- indexes:
33
+ Atlas Vector Search enables you to perform semantic searches on vector
34
+ embeddings stored in MongoDB Atlas. Vector Search indexes define the
35
+ indexes for the vector embeddings that you want to query and the boolean,
36
+ date, objectId, numeric, string, or UUID values that you want to use to
37
+ pre-filter your data.
38
+
39
+ You can call the following methods on a collection to manage your Atlas
40
+ Search and Vector Search indexes:
29
41
30
42
- ``createSearchIndex()``
31
43
- ``createSearchIndexes()``
@@ -35,9 +47,11 @@ indexes:
35
47
36
48
.. note::
37
49
38
- The Atlas Search index management methods run asynchronously and might return before
39
- confirming that they ran successfully. To determine the current status of the indexes,
40
- call the ``listSearchIndexes()`` method.
50
+ The Atlas Search and Vector Search index management methods run
51
+ asynchronously and might return before confirming that they ran
52
+ successfully. To determine the current status of the indexes, call
53
+ the ``listSearchIndexes()`` method or view the indexes list in the
54
+ :atlas:`Atlas UI </atlas-ui/indexes/>`.
41
55
42
56
The following sections provide code examples that demonstrate how to use
43
57
each of the preceding methods.
@@ -50,13 +64,7 @@ Create a Search Index
50
64
You can use the `createSearchIndex()
51
65
<{+api+}/com.mongodb.kotlin.client/-mongo-collection/create-search-index.html>`__
52
66
and the `createSearchIndexes() <{+api+}/com.mongodb.kotlin.client/-mongo-collection/create-search-indexes.html>`__
53
- methods to create one or more Atlas Search indexes.
54
-
55
- You can also use these methods to create Atlas Vector Search Indexes.
56
- Atlas Vector Search enables you to perform semantic searches on vector
57
- embeddings stored in MongoDB Atlas. To learn more about this feature,
58
- see the :atlas:`Atlas Vector Search Overview
59
- </atlas-vector-search/vector-search-overview/>`.
67
+ methods to create one or more Atlas Search or Vector Search indexes.
60
68
61
69
The following code example shows how to create an Atlas Search index:
62
70
@@ -66,7 +74,8 @@ The following code example shows how to create an Atlas Search index:
66
74
:end-before: end-create-search-index
67
75
:dedent:
68
76
69
- The following code example shows how to create multiple indexes:
77
+ The following code example shows how to create Atlas Search and
78
+ Vector Search indexes in one call:
70
79
71
80
.. literalinclude:: /includes/indexes/indexes.kt
72
81
:language: kotlin
@@ -76,7 +85,7 @@ The following code example shows how to create multiple indexes:
76
85
77
86
To learn more about the syntax used to define Atlas Search indexes, see the
78
87
:atlas:`Review Atlas Search Index Syntax </atlas-search/index-definitions>` guide
79
- in the Atlas manual .
88
+ in the Atlas documentation .
80
89
81
90
.. _kotlin-sync-atlas-search-index-list:
82
91
0 commit comments