From 06d4cc4d4a5bd0aaa4d8dc23d0d962e3097c2e2c Mon Sep 17 00:00:00 2001 From: padreug Date: Fri, 26 Sep 2025 00:54:13 +0200 Subject: [PATCH] Update fuzzy search threshold in MarketPage for improved typo tolerance - Adjusted the typo tolerance threshold in the fuzzy search options from 0.6 to 0.4, allowing for more flexible matching of product names and descriptions. - This change enhances the search experience by accommodating a wider range of user input variations, improving product discoverability. --- src/modules/market/views/MarketPage.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/market/views/MarketPage.vue b/src/modules/market/views/MarketPage.vue index 1c972cc..b5d55f7 100644 --- a/src/modules/market/views/MarketPage.vue +++ b/src/modules/market/views/MarketPage.vue @@ -283,7 +283,7 @@ const searchOptions: FuzzySearchOptions = { { name: 'description', weight: 0.3 }, // Description provides context { name: 'categories', weight: 0.4 } // Categories help with discovery ], - threshold: 0.6, // More tolerant of typos (0.0 = perfect match, 1.0 = match anything) + threshold: 0.4, // More tolerant of typos (0.0 = perfect match, 1.0 = match anything) ignoreLocation: true, // Don't care about where in the string the match is findAllMatches: true, // Find all matches, not just the first minMatchCharLength: 2, // Minimum length of a matched character sequence