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
Refactor filtering logic.
Harpreet Sangarf15f0822b234
diff --git a/src/index.cpp b/src/index.cppindex f9ba9f35..135d073c 100644--- a/src/index.cpp+++ b/src/index.cpp@@ -2113,6 +2113,13 @@ void copy_reference_ids(filter_result_t& from, filter_result_t& to) {}}}++ do_filtering(root);+ filter_ids_length = root->match_index_ids.first;+ filter_ids = root->match_index_ids.second;++ // Prevents double deletion. We'll be deleting this array upstream and when the filter tree is destructed.+ root->match_index_ids.second = nullptr;}Option<bool> Index::recursive_filter(filter_node_t* const root,