File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 66
77# Sets a client-level timeout configuration
88options = { 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
1716 docs = collection . find ( { } , timeout_ms : 10000 ) . to_a
1817
1918 docs . each { |doc | puts doc }
20- ensure
21- client . close
2219end
2320# end-csot-overrides
2421
Original file line number Diff line number Diff line change @@ -119,3 +119,12 @@ Additional Information
119119
120120To 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>`__
You can’t perform that action at this time.
0 commit comments