From b1c620fbd10e0084c9f31587f174f569d88524c8 Mon Sep 17 00:00:00 2001 From: utas-raymondng Date: Fri, 29 Nov 2024 10:36:02 +1100 Subject: [PATCH] Increase search score to reduce result --- src/components/common/store/searchReducer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/common/store/searchReducer.tsx b/src/components/common/store/searchReducer.tsx index 37ea75f7..f85fb52e 100644 --- a/src/components/common/store/searchReducer.tsx +++ b/src/components/common/store/searchReducer.tsx @@ -309,7 +309,7 @@ const calculateScore = ( base: number | undefined, text: string | undefined ): number => { - const pump = text ? (text.length / 8 > 15 ? 15 : text.length / 8) : 0; + const pump = text ? (text.length / 2 > 50 ? 50 : text.length / 2) : 0; return base ? Number(base) + Number(pump) : Number(pump); }; // Given a ParameterState object, we convert it to the correct Restful parameters