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; }