Skip to content

Commit d0033d6

Browse files
committed
tech review + add atlas search api refs
1 parent c55f148 commit d0033d6

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

source/includes/connect/csot.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66

77
# Sets a client-level timeout configuration
88
options = { timeoutMS: 30000 }
9-
client = Mongo::Client.new(uri, options)
109

11-
begin
10+
Mongo::Client.new(uri, options) do |client|
1211
db = client.use('test-db')
1312
collection = db[:test-collection]
1413

@@ -17,8 +16,6 @@
1716
docs = collection.find({}, timeout_ms: 10000).to_a
1817

1918
docs.each { |doc| puts doc }
20-
ensure
21-
client.close
2219
end
2320
# end-csot-overrides
2421

source/indexes/atlas-search-index.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,12 @@ Additional Information
119119

120120
To learn more about MongoDB Atlas Search, see the
121121
:atlas:`Atlas Search </atlas-search/atlas-search-overview/>` documentation.
122+
123+
API Documentation
124+
~~~~~~~~~~~~~~~~~
125+
126+
To learn more about any of the methods discussed in this guide, see the
127+
following API documentation:
128+
129+
- `search_indexes <{+api-root+}/Mongo/Collection.html#search_indexes-instance_method>`__
130+
- `SearchIndex methods <{+api-root+}/Mongo/SearchIndex/View.html>`__

0 commit comments

Comments
 (0)