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 using seq_id instead of kv->key

ozanarmagane747b53257e0
diff --git a/src/index.cpp b/src/index.cpp
index 321c4790..65be8edc 100644
--- a/src/index.cpp
+++ b/src/index.cpp
@@ -3221,7 +3221,7 @@ Option<bool> Index::search(std::vector<query_tokens_t>& field_query_tokens, cons
auto seq_id = vec_result.first;
KV* found_kv = nullptr;
for(auto& kv : kvs) {
- if(kv->seq_id == seq_id) {
+ if(kv->key == seq_id) {
found_kv = kv;
break;
}