Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences
C++ algoliadatastoreelasticsearchenterprise-searchfacetingfull-text-searchfuzzy-searchgeosearchin-memoryinstantsearchmerchandisingpineconesearchsearch-enginesemantic-searchsimilarity-searchsite-searchsynonymstypo-tolerancevector-search
Remove document from memory only from the index it exists in.
Kishore Nallan7b168616abdb
diff --git a/src/collection.cpp b/src/collection.cppindex 324283da..ba680906 100644--- a/src/collection.cpp+++ b/src/collection.cpp@@ -542,9 +542,8 @@ Option<std::string> Collection::remove(const std::string & id, const bool removereturn Option<std::string>(500, "Error while parsing stored document.");}- for(Index* index: indices) {- index->remove(seq_id, document);- }+ Index* index = indices[seq_id % num_indices];+ index->remove(seq_id, document);if(remove_from_store) {store->remove(get_doc_id_key(id));