diff --git a/source/includes/indexes/indexes.cpp b/source/includes/indexes/indexes.cpp index 084c0c52..8852ce2b 100644 --- a/source/includes/indexes/indexes.cpp +++ b/source/includes/indexes/indexes.cpp @@ -148,10 +148,10 @@ int main(){ // end-update-search-index } { - // start-delete-search-index + // start-remove-search-index auto siv = collection.search_indexes(); siv.drop_one("myDynamicIndex"); - // end-delete-search-index + // end-remove-search-index } } \ No newline at end of file diff --git a/source/indexes/atlas-search-index.txt b/source/indexes/atlas-search-index.txt index 1d513db4..75616d87 100644 --- a/source/indexes/atlas-search-index.txt +++ b/source/indexes/atlas-search-index.txt @@ -226,19 +226,19 @@ analyzer on the ``title`` field: .. _cpp-atlas-search-index-drop: -Delete a Search Index +Remove a Search Index --------------------- To remove an Atlas Search index from a collection, call the ``drop_one()`` method and pass in -the name of the Search index you want to delete. +the name of the Search index you want to remove. -The following example shows how to delete an Atlas Search index named ``myDynamicIndex``: +The following example shows how to remove an Atlas Search index named ``myDynamicIndex``: .. literalinclude:: /includes/indexes/indexes.cpp :language: cpp :dedent: - :start-after: start-delete-search-index - :end-before: end-delete-search-index + :start-after: start-remove-search-index + :end-before: end-remove-search-index Additional Information ----------------------