From 160a91ede78b7fd597b6eb714ab6e2abb3840855 Mon Sep 17 00:00:00 2001 From: Kishore Nallan Date: Wed, 11 Jan 2023 11:38:28 +0530 Subject: [PATCH] Fix text match default. --- src/collection_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 CollectionManager::do_search(std::map& 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 unsigned_int_values = { {MIN_LEN_1TYPO, &min_len_1typo},