Skip to content

Commit b4c8f65

Browse files
committed
nathan feedback
1 parent 9e8f0de commit b4c8f65

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

source/atlas-search.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Atlas Search Metadata
9494

9595
Use the ``searchMeta()`` method to create a :manual:`$searchMeta
9696
</reference/operator/aggregation/searchMeta/>` pipeline stage, which returns
97-
only the metadata from of the Atlas full-text search results.
97+
only the metadata from the Atlas full-text search results.
9898

9999
.. tip:: Only Available on Atlas for MongoDB v4.4.11 and later
100100

source/includes/aggregation/search-meta-agg.kt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import com.mongodb.client.model.search.SearchPath.fieldPath
99
import com.mongodb.kotlin.client.MongoCollection
1010
import org.bson.Document
1111

12-
private const val CONNECTION_URI = "<connection URI>"
13-
1412
fun runAtlasTextSearchMeta(collection: MongoCollection<Document>) {
1513
val textSearchMeta =
1614
// begin atlasSearchMeta
@@ -28,7 +26,7 @@ fun runAtlasTextSearchMeta(collection: MongoCollection<Document>) {
2826
}
2927

3028
fun main() {
31-
val uri = CONNECTION_URI
29+
val uri = "<connection string>"
3230

3331
val settings = MongoClientSettings.builder()
3432
.applyConnectionString(ConnectionString(uri))
@@ -39,7 +37,6 @@ fun main() {
3937
val database = mongoClient.getDatabase("sample_mflix")
4038
val collection = database.getCollection<Document>("movies")
4139

42-
// Uncomment the methods that correspond to what you're testing
43-
// runAtlasTextSearchMeta(collection)
40+
runAtlasTextSearchMeta(collection)
4441
}
4542
}

source/includes/atlas-search.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ fun main() {
2525
val database = mongoClient.getDatabase("sample_mflix")
2626
val collection = database.getCollection<Document>("movies")
2727

28-
// Queries for documents that have a "title" value containing the word "Alabama"
2928
// begin-atlas-search
3029
val pipeline: List<Bson> = listOf(
3130
search(SearchOperator.text(

0 commit comments

Comments
 (0)