Skip to content

Commit

Permalink
Use factor rather than blunt addition
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed Dec 11, 2024
1 parent 962e489 commit 42b19eb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ export function sortResults( results: SearchResult[], search: string ) {

// Add a slight bonus for 'post-type' results
if ( result.kind === 'post-type' ) {
score += 5;
score *= 1.1;
}

scores[ result.id ] = score;
Expand Down

0 comments on commit 42b19eb

Please sign in to comment.