Skip to content

Commit

Permalink
Increase search score to reduce result
Browse files Browse the repository at this point in the history
  • Loading branch information
utas-raymondng committed Nov 28, 2024
1 parent 7011e5a commit b1c620f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/common/store/searchReducer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b1c620f

Please sign in to comment.