Skip to content

Commit 2b8b33d

Browse files
committed
Fixes
1 parent 0c42a80 commit 2b8b33d

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

source/includes/indexes/indexes.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ data class Movie(
1313
val id: ObjectId,
1414
val title: String? = "",
1515
val type: String? = "",
16-
val genre: String? = "",
16+
val genres: List<String>? = null,
1717
val cast: List<String>? = null,
1818
val plot: String? = "",
1919
)

source/indexes/compound-index.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Overview
2323
:manual:`Compound indexes </core/index-compound/>` hold references to multiple
2424
fields within a collection's documents, improving query and sort performance.
2525

26-
When creating a single-field index, you must specify the following:
26+
When creating a compound index, you must specify the following:
2727

2828
- The fields on which to create the index
2929
- The sort order for each field (ascending or descending)
@@ -47,7 +47,8 @@ The following {+language+} data class models the documents in this collection:
4747
Create a Compound Index
4848
-----------------------
4949

50-
The following example creates a compound index on the ``type`` and ``genre`` fields:
50+
The following example creates a compound index on the ``type`` and ``genre`` fields, with
51+
both fields indexed in ascending order:
5152

5253
.. literalinclude:: /includes/indexes/indexes.kt
5354
:start-after: start-index-compound
@@ -87,8 +88,8 @@ in the {+mdb-server+} manual.
8788
API Documentation
8889
~~~~~~~~~~~~~~~~~
8990

90-
To learn more about any of the methods or types discussed in this
91-
guide, see the following API Documentation:
91+
To learn more about any of the methods discussed in this guide, see the following API
92+
documentation:
9293

9394
- `find() <{+api+}/mongodb-driver-kotlin-sync/com.mongodb.kotlin.client/-mongo-collection/find.html>`__
9495
- `filter() <{+api+}/mongodb-driver-kotlin-sync/com.mongodb.kotlin.client/-find-iterable/filter.html>`__

source/indexes/single-field-index.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ in the {+mdb-server+} manual.
8888
API Documentation
8989
~~~~~~~~~~~~~~~~~
9090

91-
To learn more about any of the methods or types discussed in this
92-
guide, see the following API Documentation:
91+
To learn more about any of the methods discussed in this guide, see the following API
92+
documentation:
9393

9494
- `find() <{+api+}/mongodb-driver-kotlin-sync/com.mongodb.kotlin.client/-mongo-collection/find.html>`__
9595
- `filter() <{+api+}/mongodb-driver-kotlin-sync/com.mongodb.kotlin.client/-find-iterable/filter.html>`__

source/work-with-indexes.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ The following pages describe the most common index types and provide sample
6868
code for creating each index type.
6969

7070
- :ref:`kotlin-sync-single-field-index`
71+
- :ref:`kotlin-sync-compound-index`
7172

72-
.. TODO: - :ref:`kotlin-sync-compound-index`
7373
.. TODO: - :ref:`kotlin-sync-atlas-search-index`
7474

7575
Remove an Index

0 commit comments

Comments
 (0)