Increase default boost weights
This commit is contained in:
@@ -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 }[],
|
||||
|
||||
|
||||
@@ -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 => {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user