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

Fix text match default.

Kishore Nallan160a91ede78b
diff --git a/src/collection_manager.cpp b/src/collection_manager.cpp
index d6d02b10..e05ee9ca 100644
--- a/src/collection_manager.cpp
+++ b/src/collection_manager.cpp
@@ -774,7 +774,7 @@ Option<bool> CollectionManager::do_search(std::map<std::string, std::string>& re
size_t max_extra_prefix = INT16_MAX;
size_t max_extra_suffix = INT16_MAX;
bool enable_highlight_v1 = true;
- text_match_type_t match_type;
+ text_match_type_t match_type = max_score;
std::unordered_map<std::string, size_t*> unsigned_int_values = {
{MIN_LEN_1TYPO, &min_len_1typo},