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:
RealFoxie
2023-01-29 02:07:49 +01:00
committed by GitHub
parent 28d24875a3
commit 0acc260447
2 changed files with 4 additions and 2 deletions

View File

@@ -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"],
},
});