"Negative" weights for custom fields

This commit is contained in:
Simon Cambier
2024-05-29 21:21:55 +02:00
parent 79bcc671b2
commit 48b694d358

View File

@@ -510,7 +510,7 @@ export class SettingsTab extends PluginSettingTab {
new Setting(containerEl) new Setting(containerEl)
.setName('Header properties fields') .setName('Header properties fields')
.setDesc( .setDesc(
'You can set custom weights for values of header properties (e.g. "keywords").' 'You can set custom weights for values of header properties (e.g. "keywords"). Weights under 1.0 will downrank the results.'
) )
for (let i = 0; i < settings.weightCustomProperties.length; i++) { for (let i = 0; i < settings.weightCustomProperties.length; i++) {
@@ -528,7 +528,7 @@ export class SettingsTab extends PluginSettingTab {
}) })
}) })
.addSlider(cb => { .addSlider(cb => {
cb.setLimits(1, 5, 0.1) cb.setLimits(0.1, 5, 0.1)
.setValue(item.weight) .setValue(item.weight)
.setDynamicTooltip() .setDynamicTooltip()
.onChange(async v => { .onChange(async v => {