Skip to content

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

Fix benchmark compile error.

Kishore Nallan94b160e79981
diff --git a/src/main/benchmark.cpp b/src/main/benchmark.cpp
index 784a72a0..8e69ffff 100644
--- a/src/main/benchmark.cpp
+++ b/src/main/benchmark.cpp
@@ -46,7 +46,7 @@ void benchmark_hn_titles(char* file_path) {
Store *store = new Store("/tmp/typesense-data");
CollectionManager & collectionManager = CollectionManager::get_instance();
- collectionManager.init(store, "abcd", "1234");
+ collectionManager.init(store, 4, "abcd", "1234");
Collection *collection = collectionManager.get_collection("hnstories_direct");
if(collection == nullptr) {
@@ -115,7 +115,7 @@ void benchmark_reactjs_pages(char* file_path) {
Store *store = new Store("/tmp/typesense-data");
CollectionManager & collectionManager = CollectionManager::get_instance();
- collectionManager.init(store, "abcd", "1234");
+ collectionManager.init(store, 4, "abcd", "1234");
Collection *collection = collectionManager.get_collection("reactjs_pages");
if(collection == nullptr) {
@@ -169,8 +169,8 @@ int main(int argc, char* argv[]) {
srand(time(NULL));
system("rm -rf /tmp/typesense-data && mkdir -p /tmp/typesense-data");
- //benchmark_hn_titles(argv[1]);
- benchmark_reactjs_pages(argv[1]);
+ benchmark_hn_titles(argv[1]);
+// benchmark_reactjs_pages(argv[1]);
return 0;
}
\ No newline at end of file
diff --git a/src/main/main.cpp b/src/main/main.cpp
index 16e177fb..a891ef1b 100644
--- a/src/main/main.cpp
+++ b/src/main/main.cpp
@@ -21,7 +21,7 @@ int main(int argc, char* argv[]) {
Store *store = new Store(state_dir_path);
CollectionManager & collectionManager = CollectionManager::get_instance();
- collectionManager.init(store, "abcd", "123");
+ collectionManager.init(store, 4, "abcd", "123");
std::vector<field> fields_to_index = {
field("lang", field_types::STRING, true),