Skip to content

Commit

Permalink
(DOCSP-40807) Fixing toctree error and deleting copies of example code.
Browse files Browse the repository at this point in the history
  • Loading branch information
your proper name committed Oct 22, 2024
1 parent e65d873 commit 33837f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 deletions.
23 changes: 1 addition & 22 deletions source/includes/indexes/indexes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,25 +53,4 @@ int main(){
// end-remove-all-wildcard
}

}

// start-db-coll
auto db = client["sample_mflix"];
auto collection = db["movies"];
// end-db-coll
// start-index-single
auto index_specification = make_document(kvp("title", 1));
collection.create_index(index_specification.view());
// end-index-single

// start-remove-index
collection.indexes().drop_one("title_1");
// end-remove-index

// start-remove-all-indexes
collection.indexes().drop_all();
// end-remove-all-indexes

// start-remove-all-wildcard
collection.indexes().drop_one("*");
// end-remove-all-wildcard
}
2 changes: 1 addition & 1 deletion source/indexes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Optimize Queries with Indexes
:titlesonly:
:maxdepth: 1

/cpp-work-with-indexes
/work-with-indexes

Overview
--------
Expand Down

0 comments on commit 33837f4

Please sign in to comment.