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 typo.

Kishore Nallan0697dc0d7bec
diff --git a/src/batched_indexer.cpp b/src/batched_indexer.cpp
index 1483fe4c..fe04b19d 100644
--- a/src/batched_indexer.cpp
+++ b/src/batched_indexer.cpp
@@ -81,7 +81,7 @@ void BatchedIndexer::enqueue(const std::shared_ptr<http_req>& req, const std::sh
// IMPORTANT: must not read `req` variables (except _req) henceforth to prevent data races with indexing thread
- if(is_old_serialized_request == 0) {
+ if(is_old_serialized_request) {
// Indicates a serialized request from a version that did not support batching (v0.21 and below).
// We can only do serial writes as we cannot reliably distinguish one streaming request from another.
// So, wait for `req_res_map` to be empty before proceeding