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

Remove unnecessary topster sort

ozanarmagan8d481d53fdb6
diff --git a/src/index.cpp b/src/index.cpp
index 6a345c85..73a7ba59 100644
--- a/src/index.cpp
+++ b/src/index.cpp
@@ -3202,7 +3202,6 @@ Option<bool> Index::search(std::vector<query_tokens_t>& field_query_tokens, cons
std::sort(kvs.begin(), kvs.end(), Topster::is_greater);
- topster->sort();
// Reciprocal rank fusion
// Score is sum of (1 / rank_of_document) * WEIGHT from each list (text match and vector search)
for(uint32_t i = 0; i < kvs.size(); i++) {