Settings and Engines
Scope: the admin's side of the glass — what settings.yml actually controls, how to see the running instance's effective configuration, and switching engines off and on, proven with an A/B test rather than asserted.
The anatomies that matter
The stock settings.yml is thousands of lines, but a
household admin will only ever touch five regions
(examples/settings-extract.yml shows them together):
- general — the instance's name and a couple of global behaviours.
- search —
formats(chapter 8),default_lang, safe search default, autocomplete default. - server — port, bind address,
secret_key(chapter 4), the limiter switch (chapter 10). - outgoing — how the instance talks to engines: request timeout (stock 3.0 s), connection pool, HTTP/2, and proxies if your network demands them (the lab's story is transcript t02).
- engines — the long tail of the file: every engine's definition and switches.
Changes need a restart. There is no reload button and no admin web page — editing the file is the admin interface, which suits a tool of this kind.
Ask the instance what it thinks: /config
The running server will describe its own effective
configuration at /config — the fastest way to check
that an edit landed, and the lab's favourite
witness (transcript t07):
version: 2026.10.19+8137186
engines listed: 261
enabled: 81
disabled: 180
limiter: enabled: false
Read the 261 honestly: that is the number of definitions the project ships. The 81 enabled are your working bench; the other 180 are specialists — language-specific engines, package indexes, niche sources — switched off until someone wants them.
Switching an engine off, proven
An engine is disabled with one line in its own entry in settings.yml:
- name: google cse
engine: google_cse
shortcut: goc
disabled: true
The lab did exactly this and repeated the query that had just returned 20 results, all of them from Google CSE (transcript t09). After the edit and a restart:
/configreported google cseenabled: true→false;- the same query returned 10 results, all from DuckDuckGo;
- google cse appeared nowhere in the reply — not even among the unresponsive engines. A disabled engine is never asked, so it cannot fail either.
The same pattern, inverted (disabled: false on one
of the 180), is how a specialist engine is switched
on. Two cautions: engine names in the file must match
exactly, and an engine whose upstream needs an API
key or a proxy (the Tor engines of chapter 3) will
sit in the enabled list and still never answer.
Suspensions: the instance defending itself
Engines that refuse rudely — a CAPTCHA, a rate
limit — are suspended: skipped for a spell instead
of being re-asked and re-refused on every search.
The lab's logs are full of the phrase
suspended_time=180: three minutes on the bench,
then a quiet retry. This is why a thin result page
often heals itself in minutes, and why hammering the
search button makes nothing better. Your settings
can change which engines are in the rotation; they
cannot change the upstreams' manners.