Skip to content

Commit

Permalink
(DOCSP-40808) Fix reference.
Browse files Browse the repository at this point in the history
  • Loading branch information
elyse-mdb committed Nov 4, 2024
1 parent ed594ff commit 43e1af6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/includes/indexes/indexes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ int main(){
// end-list-search-index
}
{
// start-update-search-indexes
// start-update-search-index
auto siv = collection.search_indexes();
auto update_fields = make_document(kvp("title", make_document(kvp("type", "string"), kvp("analyzer","lucene.simple"))));
auto update_definition = make_document(kvp("mappings", make_document(kvp("dynamic", false), kvp("fields", update_fields))));
siv.update_one("myStaticIndex", update_definition.view());
// end-update-search-indexes
// end-update-search-index
}
{
// start-delete-search-index
Expand Down

0 comments on commit 43e1af6

Please sign in to comment.