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 unwanted condition.

Harpreet Sangareee222a8e210
diff --git a/include/topster.h b/include/topster.h
index 0b106f47..355300ea 100644
--- a/include/topster.h
+++ b/include/topster.h
@@ -33,7 +33,7 @@ struct KV {
this->scores[1] = scores[1];
this->scores[2] = scores[2];
- if(match_score_index >= 0 && match_score_index <= 2){
+ if(match_score_index >= 0){
this->text_match_score = scores[match_score_index];
}
}