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
Address valgrind warnings.
kishorence5812cc9db17
diff --git a/src/index.cpp b/src/index.cppindex 41922b93..260dd447 100644--- a/src/index.cpp+++ b/src/index.cpp@@ -1144,6 +1144,7 @@ uint32_t Index::do_filtering(uint32_t** filter_ids_out, const std::vector<filter}result_ids_len = result_to_distance.size();+ delete [] temp_ids;} else if(f.is_string()) {art_tree* t = search_index.at(a_filter.field_name);diff --git a/test/collection_manager_test.cpp b/test/collection_manager_test.cppindex 9c637509..fd7cd01c 100644--- a/test/collection_manager_test.cpp+++ b/test/collection_manager_test.cpp@@ -424,8 +424,8 @@ TEST_F(CollectionManagerTest, Symlinking) {CollectionManager & cmanager = CollectionManager::get_instance();std::string state_dir_path = "/tmp/typesense_test/cmanager_test_db";system(("rm -rf "+state_dir_path+" && mkdir -p "+state_dir_path).c_str());- Store *store = new Store(state_dir_path);- cmanager.init(store, 1.0, "auth_key");+ Store *new_store = new Store(state_dir_path);+ cmanager.init(new_store, 1.0, "auth_key");cmanager.load();// try resolving on a blank slate@@ -514,6 +514,8 @@ TEST_F(CollectionManagerTest, Symlinking) {collection_option = cmanager2.resolve_symlink("company_3");ASSERT_TRUE(collection_option.ok());ASSERT_EQ("company_2020", collection_option.get());++ delete new_store;}TEST_F(CollectionManagerTest, ParseSortByClause) {