mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-02 20:15:24 +02:00
Improve the default search by focussing on title and description (#2053)
* ignore field norm + weights for basic search * better search config for advanced search * undo (wrong) automatic formatting
This commit is contained in:
parent
28d24875a3
commit
0acc260447
2 changed files with 4 additions and 2 deletions
|
@ -13,7 +13,8 @@ export const useRecipeSearch = (recipes: Ref<Recipe[] | null>) => {
|
|||
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"],
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue