feat(settings): add timeout_limit and configure engine weights and timeouts
BREAKING CHANGE: timeout_limit added to search section and engine configurations updated with weights and timeouts
This commit is contained in:
parent
0de79e1eb8
commit
ba8cfb4fa2
1 changed files with 96 additions and 4 deletions
|
|
@ -10,6 +10,7 @@ search:
|
|||
safe_search: 0
|
||||
autocomplete: "google"
|
||||
default_lang: "en"
|
||||
timeout_limit: 5.0 # wait up to 5s total; fast engines respond sooner
|
||||
formats:
|
||||
- html
|
||||
- json
|
||||
|
|
@ -22,34 +23,125 @@ server:
|
|||
|
||||
ui:
|
||||
static_use_hash: true
|
||||
results_on_new_tab: false
|
||||
theme_args:
|
||||
simple_style: auto # respects system dark/light mode
|
||||
|
||||
engines:
|
||||
# --- General Web (higher weight = results ranked higher in merged list) ---
|
||||
- name: google
|
||||
engine: google
|
||||
shortcut: g
|
||||
language: en
|
||||
region: en-US
|
||||
|
||||
- name: duckduckgo
|
||||
engine: duckduckgo
|
||||
shortcut: ddg
|
||||
weight: 2.0 # best index quality
|
||||
timeout: 4.0
|
||||
|
||||
- name: brave
|
||||
engine: brave
|
||||
shortcut: br
|
||||
weight: 1.5 # independent index, good quality
|
||||
timeout: 3.0
|
||||
|
||||
- name: duckduckgo
|
||||
engine: duckduckgo
|
||||
shortcut: ddg
|
||||
weight: 1.5
|
||||
timeout: 3.0
|
||||
|
||||
- name: bing
|
||||
engine: bing
|
||||
shortcut: b
|
||||
weight: 1.5 # large index, complements Google well
|
||||
timeout: 3.0
|
||||
|
||||
- name: startpage
|
||||
engine: startpage
|
||||
shortcut: sp
|
||||
weight: 1.2 # Google results with privacy; adds diversity
|
||||
timeout: 4.0
|
||||
|
||||
- name: qwant
|
||||
engine: qwant
|
||||
shortcut: q
|
||||
weight: 1.0
|
||||
timeout: 3.0
|
||||
|
||||
- name: mojeek
|
||||
engine: mojeek
|
||||
shortcut: mjk
|
||||
weight: 0.8 # smaller independent index; good for diversity
|
||||
timeout: 3.0
|
||||
|
||||
# --- Knowledge / Reference ---
|
||||
- name: wikipedia
|
||||
engine: wikipedia
|
||||
shortcut: wp
|
||||
weight: 1.5
|
||||
timeout: 2.0
|
||||
|
||||
# --- Tech / Code ---
|
||||
- name: github
|
||||
engine: github
|
||||
shortcut: gh
|
||||
categories: [it]
|
||||
weight: 1.5
|
||||
timeout: 3.0
|
||||
|
||||
- name: stackoverflow
|
||||
engine: stackoverflow
|
||||
shortcut: so
|
||||
categories: [it]
|
||||
weight: 1.5
|
||||
timeout: 3.0
|
||||
|
||||
- name: npm
|
||||
engine: npm
|
||||
shortcut: npm
|
||||
categories: [it]
|
||||
weight: 1.2
|
||||
timeout: 2.5
|
||||
|
||||
- name: pypi
|
||||
engine: pypi
|
||||
shortcut: pip
|
||||
categories: [it]
|
||||
weight: 1.2
|
||||
timeout: 2.5
|
||||
|
||||
# --- Academic ---
|
||||
- name: arxiv
|
||||
engine: arxiv
|
||||
shortcut: arx
|
||||
categories: [science]
|
||||
weight: 1.5
|
||||
timeout: 3.0
|
||||
|
||||
- name: semantic scholar
|
||||
engine: semantic scholar
|
||||
shortcut: ss
|
||||
categories: [science]
|
||||
weight: 1.2
|
||||
timeout: 3.5
|
||||
|
||||
# --- Community / News ---
|
||||
- name: reddit
|
||||
engine: reddit
|
||||
shortcut: r
|
||||
categories: [social media]
|
||||
weight: 1.2
|
||||
timeout: 3.0
|
||||
|
||||
- name: hackernews
|
||||
engine: hackernews
|
||||
shortcut: hn
|
||||
categories: [it, news]
|
||||
weight: 1.2
|
||||
timeout: 3.0
|
||||
|
||||
- name: google news
|
||||
engine: google news
|
||||
shortcut: gn
|
||||
categories: [news]
|
||||
weight: 1.5
|
||||
timeout: 3.0
|
||||
|
|
|
|||
Loading…
Reference in a new issue