Skip to content

Commit

Permalink
Merge pull request #232 from aodn/features/5965-tighten-search-score
Browse files Browse the repository at this point in the history
Increase search score to reduce result
  • Loading branch information
NekoLyn authored Nov 28, 2024
2 parents 3e97f70 + b1c620f commit 6b9607e
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 6b9607e

Please sign in to comment.