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 num_typos configuration parsing.

Kishore Nallan787130cd0657
diff --git a/src/collection_manager.cpp b/src/collection_manager.cpp
index d032051d..e6a386ec 100644
--- a/src/collection_manager.cpp
+++ b/src/collection_manager.cpp
@@ -566,6 +566,8 @@ Option<bool> add_unsigned_int_list_param(const std::string& param_name, const st
std::vector<uint32_t>* int_vals) {
std::vector<std::string> str_vals;
StringUtils::split(str_val, str_vals, ",");
+ int_vals->clear();
+
for(auto& str : str_vals) {
if(StringUtils::is_uint32_t(str)) {
int_vals->push_back((uint32_t)std::stoi(str));