diff --git a/src/storage/v2/vertex_accessor.cpp b/src/storage/v2/vertex_accessor.cpp index d7ac15d70..7dc704684 100644 --- a/src/storage/v2/vertex_accessor.cpp +++ b/src/storage/v2/vertex_accessor.cpp @@ -283,7 +283,7 @@ Result VertexAccessor::SetProperty(PropertyId property, const Pro .search_query = fmt::format("metadata.gid:{}", vertex->gid.AsInt()), .return_fields = {"data"}}; auto search_result = memcxx::text_search::search(*index_context, search_input); - // memcxx::text_search::delete_document(*index_context, search_input, true); + memcxx::text_search::delete_document(*index_context, search_input, true); auto new_properties = search_result.docs[0].data; // TODO (pending real Tantivy results): parse result to // JSON, set property and convert back to string auto new_properties_document = memcxx::text_search::DocumentInput{.data = new_properties}; @@ -372,7 +372,7 @@ Result>> Vertex .search_query = fmt::format("metadata.gid:{}", vertex->gid.AsInt()), .return_fields = {"data"}}; auto search_result = memcxx::text_search::search(*index_context, search_input); - // memcxx::text_search::delete_document(*index_context, search_input, true); + memcxx::text_search::delete_document(*index_context, search_input, true); auto new_properties = search_result.docs[0].data; // TODO (pending real Tantivy results): parse result to // JSON, set property and convert back to string auto new_properties_document = memcxx::text_search::DocumentInput{.data = new_properties}; @@ -429,7 +429,7 @@ Result> VertexAccessor::ClearProperties() { for (auto *index_context : storage->indices_.text_index_->GetApplicableTextIndices(vertex)) { auto search_input = memcxx::text_search::SearchInput{.search_query = fmt::format("metadata.gid:{}", vertex->gid.AsInt())}; - // memcxx::text_search::delete_document(*index_context, search_input, true); + memcxx::text_search::delete_document(*index_context, search_input, true); } } }};