1
1
.. _kotlin-sync-single-field-index:
2
2
3
3
====================
4
- Single- Field Indexes
4
+ Single Field Indexes
5
5
====================
6
6
7
7
.. contents:: On this page
@@ -20,19 +20,19 @@ Single-Field Indexes
20
20
Overview
21
21
--------
22
22
23
- :manual:`Single- field indexes </core/index-single/>` are indexes with a reference to a
23
+ :manual:`Single field indexes </core/index-single/>` are indexes with a reference to a
24
24
single field within a collection's documents. They improve single field query and sort
25
25
performance, and support :manual:`TTL Indexes </core/index-ttl>` that automatically remove
26
26
documents from a collection after a certain amount of time or at a specific clock time.
27
27
28
- When creating a single- field index, you must specify the following:
28
+ When creating a single field index, you must specify the following:
29
29
30
30
- The field on which to create the index
31
31
- The sort order for the indexed values (ascending or descending)
32
32
33
33
.. note::
34
34
35
- The ``_id_`` index is an example of a single- field index. This index is automatically
35
+ The ``_id_`` index is an example of a single field index. This index is automatically
36
36
created on the ``_id`` field when a new collection is created.
37
37
38
38
Sample Data
@@ -51,7 +51,7 @@ The following {+language+} data class models the documents in this collection:
51
51
:language: kotlin
52
52
:copyable:
53
53
54
- Create Single- Field Index
54
+ Create Single Field Index
55
55
-------------------------
56
56
57
57
The following example creates an index in ascending order on the ``title`` field:
@@ -82,7 +82,7 @@ The following is an example of a query that is covered by the index created in t
82
82
Additional Information
83
83
----------------------
84
84
85
- To learn more about single- field indexes, see :manual:`Single Field Indexes </core/index-single>`
85
+ To learn more about single field indexes, see :manual:`Single Field Indexes </core/index-single>`
86
86
in the {+mdb-server+} manual.
87
87
88
88
API Documentation
0 commit comments