diff --git a/frontend/composables/recipes/use-recipe-search.ts b/frontend/composables/recipes/use-recipe-search.ts index ad3aaa65d..19d003bfd 100644 --- a/frontend/composables/recipes/use-recipe-search.ts +++ b/frontend/composables/recipes/use-recipe-search.ts @@ -13,7 +13,8 @@ export const useRecipeSearch = (recipes: Ref) => { findAllMatches: true, maxPatternLength: 32, minMatchCharLength: 2, - keys: ["name", "description", "recipeIngredient.note", "recipeIngredient.food.name"], + ignoreFieldNorm: true, + keys: [{ name: "name", weight: 1.3 }, { name: "description", weight: 1.2 }, "recipeIngredient.note", "recipeIngredient.food.name"], }, }); diff --git a/frontend/pages/search.vue b/frontend/pages/search.vue index 3fe9bdb69..30f39b75b 100644 --- a/frontend/pages/search.vue +++ b/frontend/pages/search.vue @@ -186,7 +186,8 @@ export default defineComponent({ findAllMatches: true, maxPatternLength: 32, minMatchCharLength: 2, - keys: ["name", "description", "recipeIngredient.note", "recipeIngredient.food.name"], + ignoreFieldNorm: true, + keys: [{ name: "name", weight: 1.3 }, { name: "description", weight: 1.2 }, "recipeIngredient.note", "recipeIngredient.food.name"], }, });