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

Pass `KV` references in the constructor.

Harpreet Sangarce05321316c8
diff --git a/src/index.cpp b/src/index.cpp
index 10b73baf..5a69fab9 100644
--- a/src/index.cpp
+++ b/src/index.cpp
@@ -2447,9 +2447,8 @@ Option<bool> Index::search(std::vector<query_tokens_t>& field_query_tokens, cons
return compute_sort_scores_op;
}
- KV kv(searched_queries.size(), seq_id, distinct_id, match_score_index, scores);
+ KV kv(searched_queries.size(), seq_id, distinct_id, match_score_index, scores, std::move(references));
kv.vector_distance = vec_dist_score;
- kv.reference_filter_results = std::move(references);
int ret = topster->add(&kv);
if(group_limit != 0 && ret < 2) {