File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ import com.mongodb.client.model.geojson.Position
28
28
import com.mongodb.client.model.search.SearchOperator
29
29
import com.mongodb.client.model.search.SearchOptions
30
30
import com.mongodb.client.model.search.SearchPath
31
- import com.mongodb.client.model.search.VectorSearchOptions
32
31
import com.mongodb.client.model.search.VectorSearchOptions.exactVectorSearchOptions
33
32
import com.mongodb.kotlin.client.coroutine.MongoClient
34
33
import config.getConfig
Original file line number Diff line number Diff line change @@ -932,13 +932,12 @@ The example in this section uses data modeled with the following Kotlin data cla
932
932
:language: kotlin
933
933
934
934
This example shows how to build an aggregation pipeline that uses the
935
- ``vectorSearch()`` method to perform a vector search with the following
935
+ ``vectorSearch()`` method to perform an exact vector search with the following
936
936
specifications:
937
937
938
938
- Searches ``plotEmbedding`` field values by using vector embeddings of a
939
939
string value
940
940
- Uses the ``mflix_movies_embedding_index`` vector search index
941
- - Considers up to 2 nearest neighbors
942
941
- Returns 1 document
943
942
- Filters for documents in which the ``year`` value is at least ``2016``
944
943
Original file line number Diff line number Diff line change @@ -35,6 +35,11 @@ improvements, and fixes:
35
35
36
36
:ref:`kotlin-search-indexes` in the Indexes guide
37
37
38
+ .. TODO blocked on https://github.com/10gen/docs-shared/pull/85
39
+ .. .. replacement:: vector-search-link
40
+ ..
41
+ .. :ref:`kotlin-atlas-vector-search` in the Aggregates Builders guide
42
+
38
43
- Adds support for serializers from the ``kotlinx-datetime`` library
39
44
that let you map {+language+} date and time types to BSON as the
40
45
expected types instead of as strings. To learn more, see the
You can’t perform that action at this time.
0 commit comments