Skip to content

Commit 59c3baf

Browse files
committed
DOCSP-48422: search index type (#170)
(cherry picked from commit ba2f297)
1 parent 6b8c389 commit 59c3baf

File tree

6 files changed

+264
-161
lines changed

6 files changed

+264
-161
lines changed

source/fundamentals/aggregation/vector-search.txt

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,12 @@ Search Overview </atlas-vector-search/vector-search-overview/>`.
4141
Atlas Search feature. To learn about this feature, see the
4242
:atlas:`Atlas Search Overview </atlas-search/atlas-search-overview/>`.
4343

44-
.. TODO update when we add VS type updates to the linked page
45-
46-
.. Atlas Vector Search Index
47-
.. ~~~~~~~~~~~~~~~~~~~~~~~~~
48-
..
49-
.. Before you can perform Atlas Vector Search queries, you must create an
50-
.. Atlas Vector Search index on your collection. To learn more about
51-
.. creating this index type, see the :ref:`rust-atlas-search-indexes` guide.
44+
Atlas Vector Search Index
45+
~~~~~~~~~~~~~~~~~~~~~~~~~
46+
47+
Before you can perform Atlas Vector Search queries, you must create an
48+
Atlas Vector Search index on your collection. To learn more about
49+
creating this index, see the :ref:`rust-atlas-search-indexes` guide.
5250

5351
Vector Search Aggregation Stage
5452
-------------------------------

source/fundamentals/indexes.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Indexes
1919

2020
.. toctree::
2121

22-
Atlas Search Indexes </fundamentals/indexes/atlas-search-indexes>
22+
Atlas Search & Vector Search Indexes </fundamentals/indexes/atlas-search-indexes>
2323

2424
Overview
2525
--------
@@ -164,7 +164,7 @@ The following code creates an ascending index on the
164164
.. io-code-block::
165165
:copyable: true
166166

167-
.. input:: /includes/fundamentals/code-snippets/indexes.rs
167+
.. input:: /includes/fundamentals/code-snippets/indexes/indexes.rs
168168
:start-after: begin-single-field
169169
:end-before: end-single-field
170170
:language: rust
@@ -200,7 +200,7 @@ The following code creates a compound index on the
200200
.. io-code-block::
201201
:copyable: true
202202

203-
.. input:: /includes/fundamentals/code-snippets/indexes.rs
203+
.. input:: /includes/fundamentals/code-snippets/indexes/indexes.rs
204204
:start-after: begin-compound
205205
:end-before: end-compound
206206
:language: rust
@@ -233,7 +233,7 @@ The following code creates a multikey index on the
233233
.. io-code-block::
234234
:copyable: true
235235

236-
.. input:: /includes/fundamentals/code-snippets/indexes.rs
236+
.. input:: /includes/fundamentals/code-snippets/indexes/indexes.rs
237237
:start-after: begin-multikey
238238
:end-before: end-multikey
239239
:language: rust
@@ -284,7 +284,7 @@ The following code creates a clustered index with default configuration on the
284284
``_id`` field when creating a new collection called ``items`` in the
285285
``sample_training`` database:
286286

287-
.. literalinclude:: /includes/fundamentals/code-snippets/indexes.rs
287+
.. literalinclude:: /includes/fundamentals/code-snippets/indexes/indexes.rs
288288
:start-after: begin-clustered
289289
:end-before: end-clustered
290290
:language: rust
@@ -322,7 +322,7 @@ The following code creates a text index on the ``body`` field in the
322322
.. io-code-block::
323323
:copyable: true
324324

325-
.. input:: /includes/fundamentals/code-snippets/indexes.rs
325+
.. input:: /includes/fundamentals/code-snippets/indexes/indexes.rs
326326
:start-after: begin-text
327327
:end-before: end-text
328328
:language: rust
@@ -384,7 +384,7 @@ The following code creates a geospatial ``2dsphere`` index on the
384384
.. io-code-block::
385385
:copyable: true
386386

387-
.. input:: /includes/fundamentals/code-snippets/indexes.rs
387+
.. input:: /includes/fundamentals/code-snippets/indexes/indexes.rs
388388
:start-after: begin-geo
389389
:end-before: end-geo
390390
:language: rust
@@ -417,7 +417,7 @@ The following code shows how to set the ``unique`` field to ``true`` in an
417417
``IndexOptions`` instance and pass these options when creating an
418418
``IndexModel``:
419419

420-
.. literalinclude:: /includes/fundamentals/code-snippets/indexes.rs
420+
.. literalinclude:: /includes/fundamentals/code-snippets/indexes/indexes.rs
421421
:start-after: begin-unique
422422
:end-before: end-unique
423423
:language: rust
@@ -440,7 +440,7 @@ name of the index to the ``drop_index()`` method.
440440
The following example removes an index called ``city_1`` from the
441441
``sample_training.zips`` collection:
442442

443-
.. literalinclude:: /includes/fundamentals/code-snippets/indexes.rs
443+
.. literalinclude:: /includes/fundamentals/code-snippets/indexes/indexes.rs
444444
:start-after: begin-drop
445445
:end-before: end-drop
446446
:language: rust

0 commit comments

Comments
 (0)