From 0dc2d5c432aac4adfd99c61ab2ca2ef8efb41dd2 Mon Sep 17 00:00:00 2001 From: rustagir Date: Wed, 25 Sep 2024 16:30:18 -0400 Subject: [PATCH 1/3] DOCSP-43826: v5.2 release --- config/redirects | 6 +++++- snooty.toml | 4 ++-- source/includes/indexes/indexes.kt | 1 + source/indexes/atlas-search-index.txt | 7 ++++++- source/whats-new.txt | 7 +++++++ 5 files changed, 21 insertions(+), 4 deletions(-) diff --git a/config/redirects b/config/redirects index b7060c54..516938d4 100644 --- a/config/redirects +++ b/config/redirects @@ -1,6 +1,10 @@ define: prefix docs/languages/kotlin/kotlin-sync-driver define: base https://www.mongodb.com/docs/ -define: versions master +define: versions v5.1 v5.2 master + +symlink: current -> master # raw: -> ${base}/ +raw: ${prefix}/ -> ${base}/current/ +raw: ${prefix}/master -> ${base}/upcoming/ diff --git a/snooty.toml b/snooty.toml index a0884475..661a31f1 100644 --- a/snooty.toml +++ b/snooty.toml @@ -24,8 +24,8 @@ sharedinclude_root = "https://raw.githubusercontent.com/10gen/docs-shared/main/" driver-long = "MongoDB Kotlin Sync Driver" driver-short = "Kotlin Sync driver" language = "Kotlin" -version-number = "5.1" -full-version = "{+version-number+}.4" +version-number = "5.2" +full-version = "{+version-number+}.0" version = "v{+version-number+}" mdb-server = "MongoDB Server" stable-api = "Stable API" diff --git a/source/includes/indexes/indexes.kt b/source/includes/indexes/indexes.kt index 7a782926..724c9cba 100644 --- a/source/includes/indexes/indexes.kt +++ b/source/includes/indexes/indexes.kt @@ -4,6 +4,7 @@ import com.mongodb.client.model.Indexes import com.mongodb.client.model.Filters import com.mongodb.client.model.Sorts import com.mongodb.client.model.SearchIndexModel +import com.mongodb.client.model.SearchIndexType import com.mongodb.kotlin.client.MongoClient import org.bson.codecs.pojo.annotations.BsonId import org.bson.types.ObjectId diff --git a/source/indexes/atlas-search-index.txt b/source/indexes/atlas-search-index.txt index de0cffa8..2eb7ab04 100644 --- a/source/indexes/atlas-search-index.txt +++ b/source/indexes/atlas-search-index.txt @@ -74,6 +74,11 @@ The following code example shows how to create an Atlas Search index: :end-before: end-create-search-index :dedent: +To create multiple Search or Vector Search indexes, you must create a +`SearchIndexModel +<{+api+}/apidocs/mongodb-driver-core/com/mongodb/client/model/SearchIndexModel.html>`__ +instance for each index. + The following code example shows how to create Atlas Search and Vector Search indexes in one call: @@ -143,4 +148,4 @@ Additional Information ---------------------- To learn more about MongoDB Atlas Search, see the :atlas:`Atlas Search Indexes ` -documentation. \ No newline at end of file +documentation. diff --git a/source/whats-new.txt b/source/whats-new.txt index 3628394f..22c19a10 100644 --- a/source/whats-new.txt +++ b/source/whats-new.txt @@ -33,6 +33,13 @@ improvements, and fixes: the :ref:`kotlin-sync-search-avs-indexes` guide +.. TODO blocked on https://github.com/10gen/docs-shared/pull/85 +.. .. replacement:: vector-search-link +.. +.. the :atlas:`Atlas Vector Search Quick Start +.. ` and +.. select :guilabel:`Kotlin (Sync)` from the language dropdown. + - Adds support for serializers from the ``kotlinx-datetime`` library that let you map {+language+} date and time types to BSON as the expected types instead of as strings. To learn more, see the From 0789c535fa02d14b60c8e47bce64f52d5f24fdfa Mon Sep 17 00:00:00 2001 From: rustagir Date: Wed, 25 Sep 2024 16:32:56 -0400 Subject: [PATCH 2/3] link fix --- source/indexes/atlas-search-index.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/indexes/atlas-search-index.txt b/source/indexes/atlas-search-index.txt index 2eb7ab04..652eecd0 100644 --- a/source/indexes/atlas-search-index.txt +++ b/source/indexes/atlas-search-index.txt @@ -76,7 +76,7 @@ The following code example shows how to create an Atlas Search index: To create multiple Search or Vector Search indexes, you must create a `SearchIndexModel -<{+api+}/apidocs/mongodb-driver-core/com/mongodb/client/model/SearchIndexModel.html>`__ +<{+core-api+}/com/mongodb/client/model/SearchIndexModel.html>`__ instance for each index. The following code example shows how to create Atlas Search and From bc58003175e8436466171447a150995a3405c86e Mon Sep 17 00:00:00 2001 From: rustagir Date: Wed, 25 Sep 2024 17:03:41 -0400 Subject: [PATCH 3/3] docs-shared updated --- source/whats-new.txt | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/source/whats-new.txt b/source/whats-new.txt index 22c19a10..bfb2ab7b 100644 --- a/source/whats-new.txt +++ b/source/whats-new.txt @@ -33,12 +33,11 @@ improvements, and fixes: the :ref:`kotlin-sync-search-avs-indexes` guide -.. TODO blocked on https://github.com/10gen/docs-shared/pull/85 -.. .. replacement:: vector-search-link -.. -.. the :atlas:`Atlas Vector Search Quick Start -.. ` and -.. select :guilabel:`Kotlin (Sync)` from the language dropdown. + .. replacement:: vector-search-link + + the :atlas:`Atlas Vector Search Quick Start + ` and + select :guilabel:`Kotlin (Sync)` from the language dropdown. - Adds support for serializers from the ``kotlinx-datetime`` library that let you map {+language+} date and time types to BSON as the