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
Check for presence of key before getting from old doc during update.
Kishore Nallan2d4221c1f7f0
diff --git a/src/index.cpp b/src/index.cppindex 4e6ac914..155958ce 100644--- a/src/index.cpp+++ b/src/index.cpp@@ -6268,7 +6268,9 @@ void Index::get_doc_changes(const index_operation_t op, const tsl::htrie_map<chaif(it.value().is_null()) {// null values should not be indexednew_doc.erase(it.key());- del_doc[it.key()] = old_doc[it.key()];+ if(old_doc.contains(it.key())) {+ del_doc[it.key()] = old_doc[it.key()];+ }it = update_doc.erase(it);continue;}