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

Minor tweaks.

Kishore Nallanbabf6bf5d5cb
diff --git a/src/batched_indexer.cpp b/src/batched_indexer.cpp
index 1d8e17e6..b949d421 100644
--- a/src/batched_indexer.cpp
+++ b/src/batched_indexer.cpp
@@ -220,7 +220,7 @@ void BatchedIndexer::run() {
delete iter;
- //LOG(INFO) << "Erasing request data from disk and memory for request " << orig_req_res.req->start_ts;
+ //LOG(INFO) << "Erasing request data from disk and memory for request " << req_id;
// we can delete the buffered request content
store->delete_range(req_key_prefix, req_key_prefix + StringUtils::serialize_uint32_t(UINT32_MAX));
diff --git a/src/collection_manager.cpp b/src/collection_manager.cpp
index eb70c2d4..196c19bf 100644
--- a/src/collection_manager.cpp
+++ b/src/collection_manager.cpp
@@ -1126,7 +1126,7 @@ Option<bool> CollectionManager::load_collection(const nlohmann::json &collection
num_indexed_docs += num_indexed;
}
- if(num_found_docs % 20*1000 == 0) {
+ if(num_found_docs % ((1 << 14)) == 0) {
// having a cheaper higher layer check to prevent checking clock too often
auto time_elapsed = std::chrono::duration_cast<std::chrono::seconds>(
std::chrono::high_resolution_clock::now() - begin).count();