@@ -343,19 +343,18 @@ Before you can perform a search on an Atlas collection, you must first
343
343
create an Atlas Search index on the collection. An Atlas Search
344
344
index is a data structure that categorizes data in a searchable format.
345
345
346
- Starting in version 5.7 of the {+driver-short+}, you can manage your
347
- Search indexes using the following methods:
346
+ You can use the following methods to manage your Search indexes:
348
347
349
348
- ``createSearchIndex()``
350
349
- ``createSearchIndexes()``
351
350
- ``listSearchIndexes()``
352
351
- ``updateSearchIndex()``
353
352
- ``dropSearchIndex()``
354
353
355
- The following sections provide example code using each of the preceding
354
+ The following sections provide code samples that use each of the preceding
356
355
methods to manage Search indexes.
357
356
358
- Create Search Indexes
357
+ Create a Search Index
359
358
~~~~~~~~~~~~~~~~~~~~~
360
359
361
360
You can use the `createSearchIndex()
@@ -378,11 +377,10 @@ List Search Indexes
378
377
379
378
You can use the `listSearchIndexes()
380
379
<{+api+}/classes/Collection.html#listSearchIndexes>`__
381
- method to return a cursor that contains the search indexes of a given
380
+ method to return a cursor that contains the Search indexes of a given
382
381
collection. The ``listSearchIndexes()`` method takes an optional string
383
- parameter, ``name``, to return only the indexes with matching index
384
- names. It also takes an optional `aggregateOptions
385
- <{+api+}/interfaces/AggregateOptions.html>`__ parameter.
382
+ parameter, ``name``, to return only the indexes with matching names. It
383
+ also takes an optional `aggregateOptions <{+api+}/interfaces/AggregateOptions.html>`__ parameter.
386
384
387
385
The following code uses the ``listSearchIndexes()`` method to list the
388
386
Search indexes in a collection:
@@ -393,7 +391,7 @@ Search indexes in a collection:
393
391
:start-after: start listSearchIndexes example
394
392
:end-before: end listSearchIndexes example
395
393
396
- Update Search Indexes
394
+ Update a Search Index
397
395
~~~~~~~~~~~~~~~~~~~~~
398
396
399
397
You can use the `updateSearchIndex()
@@ -410,8 +408,8 @@ use the ``updateSearchIndex()`` method to update an index called
410
408
:start-after: start dropSearchIndex example
411
409
:end-before: end dropSearchIndex example
412
410
413
- Remove Search Indexes
414
- ~~~~~~~~~~~~~~~~~~~~~
411
+ Drop a Search Index
412
+ ~~~~~~~~~~~~~~~~~~~
415
413
416
414
You can use the `dropSearchIndex()
417
415
<{+api+}/classes/Collection.html#dropSearchIndex>`__ method to remove a Search
0 commit comments