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
Chore: free filter_ids during exclude filtering.
Kishore Nallan2bf64bb20557
diff --git a/src/index.cpp b/src/index.cppindex b7cc46a1..e57769fa 100644--- a/src/index.cpp+++ b/src/index.cpp@@ -1329,7 +1329,11 @@ uint32_t Index::do_filtering(uint32_t** filter_ids_out, const std::vector<filterexcluded_strt_size = ArrayUtils::exclude_scalar(ids, ids_size, strt_ids,strt_ids_size, &excluded_strt_ids);- delete [] ids;+ if(filter_ids == nullptr) {+ // means we had to uncompress `seq_ids` so need to free that+ delete [] ids;+ }+ids = excluded_strt_ids;ids_size = excluded_strt_size;