@@ -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
2424Overview
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.
440440The 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