@@ -19,7 +19,7 @@ Indexes
19
19
20
20
.. toctree::
21
21
22
- Atlas Search Indexes </fundamentals/indexes/atlas-search-indexes>
22
+ Atlas Search & Vector Search Indexes </fundamentals/indexes/atlas-search-indexes>
23
23
24
24
Overview
25
25
--------
@@ -164,7 +164,7 @@ The following code creates an ascending index on the
164
164
.. io-code-block::
165
165
:copyable: true
166
166
167
- .. input:: /includes/fundamentals/code-snippets/indexes.rs
167
+ .. input:: /includes/fundamentals/code-snippets/indexes/indexes .rs
168
168
:start-after: begin-single-field
169
169
:end-before: end-single-field
170
170
:language: rust
@@ -200,7 +200,7 @@ The following code creates a compound index on the
200
200
.. io-code-block::
201
201
:copyable: true
202
202
203
- .. input:: /includes/fundamentals/code-snippets/indexes.rs
203
+ .. input:: /includes/fundamentals/code-snippets/indexes/indexes .rs
204
204
:start-after: begin-compound
205
205
:end-before: end-compound
206
206
:language: rust
@@ -233,7 +233,7 @@ The following code creates a multikey index on the
233
233
.. io-code-block::
234
234
:copyable: true
235
235
236
- .. input:: /includes/fundamentals/code-snippets/indexes.rs
236
+ .. input:: /includes/fundamentals/code-snippets/indexes/indexes .rs
237
237
:start-after: begin-multikey
238
238
:end-before: end-multikey
239
239
:language: rust
@@ -284,7 +284,7 @@ The following code creates a clustered index with default configuration on the
284
284
``_id`` field when creating a new collection called ``items`` in the
285
285
``sample_training`` database:
286
286
287
- .. literalinclude:: /includes/fundamentals/code-snippets/indexes.rs
287
+ .. literalinclude:: /includes/fundamentals/code-snippets/indexes/indexes .rs
288
288
:start-after: begin-clustered
289
289
:end-before: end-clustered
290
290
:language: rust
@@ -322,7 +322,7 @@ The following code creates a text index on the ``body`` field in the
322
322
.. io-code-block::
323
323
:copyable: true
324
324
325
- .. input:: /includes/fundamentals/code-snippets/indexes.rs
325
+ .. input:: /includes/fundamentals/code-snippets/indexes/indexes .rs
326
326
:start-after: begin-text
327
327
:end-before: end-text
328
328
:language: rust
@@ -384,7 +384,7 @@ The following code creates a geospatial ``2dsphere`` index on the
384
384
.. io-code-block::
385
385
:copyable: true
386
386
387
- .. input:: /includes/fundamentals/code-snippets/indexes.rs
387
+ .. input:: /includes/fundamentals/code-snippets/indexes/indexes .rs
388
388
:start-after: begin-geo
389
389
:end-before: end-geo
390
390
:language: rust
@@ -417,7 +417,7 @@ The following code shows how to set the ``unique`` field to ``true`` in an
417
417
``IndexOptions`` instance and pass these options when creating an
418
418
``IndexModel``:
419
419
420
- .. literalinclude:: /includes/fundamentals/code-snippets/indexes.rs
420
+ .. literalinclude:: /includes/fundamentals/code-snippets/indexes/indexes .rs
421
421
:start-after: begin-unique
422
422
:end-before: end-unique
423
423
:language: rust
@@ -440,7 +440,7 @@ name of the index to the ``drop_index()`` method.
440
440
The following example removes an index called ``city_1`` from the
441
441
``sample_training.zips`` collection:
442
442
443
- .. literalinclude:: /includes/fundamentals/code-snippets/indexes.rs
443
+ .. literalinclude:: /includes/fundamentals/code-snippets/indexes/indexes .rs
444
444
:start-after: begin-drop
445
445
:end-before: end-drop
446
446
:language: rust
0 commit comments