From eddb882d5be9553730d30ee876a67df234809ce5 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Tue, 15 Aug 2023 00:09:21 -0400 Subject: [PATCH] Improve browser search results by tweaking FuzzySearchDatabase weights. --- src/app/Browser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/Browser.cpp b/src/app/Browser.cpp index fc6687e1..adb5bdbc 100644 --- a/src/app/Browser.cpp +++ b/src/app/Browser.cpp @@ -45,7 +45,7 @@ static fuzzysearch::Database modelDb; static void modelDbInit() { modelDb = fuzzysearch::Database(); - modelDb.setWeights({1.0f, 1.0f, 1.0f, 0.8f, 1.0f}); + modelDb.setWeights({0.9f, 0.75f, 1.0f, 0.8f, 0.9f}); modelDb.setThreshold(0.5f); // Iterate plugins