From e747b53257e047896c15ffa6d7a713d9f48a4cfb Mon Sep 17 00:00:00 2001 From: ozanarmagan Date: Thu, 28 Sep 2023 13:14:27 +0300 Subject: [PATCH] Fix using seq_id instead of kv->key --- src/index.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 Index::search(std::vector& 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; }