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
Fix compile error in benchmark and search utility programs.
Kishore Nallanfa9318acd139
diff --git a/TODO.md b/TODO.mdindex 174f2760..49bc1152 100644--- a/TODO.md+++ b/TODO.md@@ -43,9 +43,9 @@- ~~Drop collection API~~- ~~JSONP response~~- ~~"error":"Not found." is sent when query has no hits~~+- ~~Fix API response codes~~- Number of records in collection- Use rocksdb batch put for atomic insertion-- Fix API response codes- When prefix=true, use token_ranking_field for token ordering only for last word- Query token ids should match query token ordering- ID should not have "/"diff --git a/src/main/benchmark.cpp b/src/main/benchmark.cppindex b9bfb38a..4076d68e 100644--- a/src/main/benchmark.cpp+++ b/src/main/benchmark.cpp@@ -20,7 +20,7 @@ int main(int argc, char* argv[]) {std::vector<field> sort_fields = { field("points", "INT32")};Store *store = new Store("/tmp/typesense-data");CollectionManager & collectionManager = CollectionManager::get_instance();- collectionManager.init(store);+ collectionManager.init(store, "abcd");Collection *collection = collectionManager.get_collection("collection");if(collection == nullptr) {@@ -48,7 +48,7 @@ int main(int argc, char* argv[]) {while(counter < 3000) {auto i = counter % 5;- auto results = collection->search(queries[i], search_fields, "", { }, {sort_field("points", "DESC")}, 1, 100, MAX_SCORE, 0);+ auto results = collection->search(queries[i], search_fields, "", { }, {sort_field("points", "DESC")}, 1, 10, 1, MAX_SCORE, 0).get();results_total += results.size();counter++;}diff --git a/src/main/main.cpp b/src/main/main.cppindex 2b6ee5cc..3468fc35 100644--- a/src/main/main.cpp+++ b/src/main/main.cpp@@ -19,7 +19,7 @@ int main(int argc, char* argv[]) {Store *store = new Store("/tmp/typesense-data");CollectionManager & collectionManager = CollectionManager::get_instance();- collectionManager.init(store);+ collectionManager.init(store, "abcd");std::vector<field> fields_to_index = {field("lang", field_types::STRING),