Increase default boost weights

This commit is contained in:
Tanner
2026-09-08 17:55:40 +00:00
parent 2fea7cc423
commit b2b90b0558
3 changed files with 9 additions and 9 deletions
+6 -6
View File
@@ -125,12 +125,12 @@ export function getDefaultSettings(app: App): OmnisearchSettings {
fuzziness: '1',
weightBasename: 10,
weightDirectory: 7,
weightH1: 6,
weightH2: 5,
weightH3: 4,
weightH4: 3,
weightColonHeadings: 2,
weightDirectory: 8,
weightH1: 7,
weightH2: 6,
weightH3: 5,
weightH4: 4,
weightColonHeadings: 3,
weightUnmarkedTags: 2,
weightCustomProperties: [] as { name: string; weight: number }[],
+1 -1
View File
@@ -16,7 +16,7 @@ export function injectSettingsWeighting(
cb: SliderComponent,
key: keyof WeightingSettings
): void {
cb.setLimits(1, 10, 0.5)
cb.setLimits(1, 20, 0.5)
.setValue(settings[key])
.setDynamicTooltip()
.onChange(async v => {
+2 -2
View File
@@ -8,8 +8,8 @@ import type { IndexedDocument } from '../src/globals'
type Note = { path: string; basename: string; text: string }
const defaults: any = {
fuzziness: '1', weightBasename: 10, weightDirectory: 7, weightH1: 6,
weightH2: 5, weightH3: 4, weightH4: 3, weightColonHeadings: 2, weightUnmarkedTags: 2, recencyBoost: '0',
fuzziness: '1', weightBasename: 10, weightDirectory: 8, weightH1: 7,
weightH2: 6, weightH3: 5, weightH4: 4, weightColonHeadings: 3, weightUnmarkedTags: 2, recencyBoost: '0',
downrankedFoldersFilters: [], hideExcluded: false, weightCustomProperties: [],
ignoreDiacritics: true, ignoreArabicDiacritics: false, simpleSearch: false,
maxEmbeds: 5, renderLineReturnInExcerpts: true, highlight: true,