mirror of
https://github.com/typesense/typesense.git
synced 2025-05-20 21:52:23 +08:00
Remove unnecessary topster sort
This commit is contained in:
parent
a99baf7e0a
commit
8d481d53fd
@ -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++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user