Skip to content

Commit

Permalink
chore(algolia): tune ranking criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelgerber committed Dec 14, 2023
1 parent 9eecedb commit cc7ff70
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion baker/algolia/configureAlgolia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ export const configureAlgolia = async () => {
const baseSettings: Settings = {
queryLanguages: ["en"],
indexLanguages: ["en"],
ranking: ["exact", "typo", "words", "proximity", "attribute", "custom"],

// see https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/
ranking: ["typo", "words", "proximity", "attribute", "exact", "custom"],
alternativesAsExact: [
"ignorePlurals",
"singleWordSynonym",
Expand Down

0 comments on commit cc7ff70

Please sign in to comment.