"Negative" weights for custom fields
This commit is contained in:
@@ -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 => {
|
||||||
|
|||||||
Reference in New Issue
Block a user