Commit graph

2 commits

Author SHA1 Message Date
User
0a80d0ef26 searcher: skip empty-result instances in failover
Treat an instance that answers 200 with zero results as a soft failure and
fall through to the next instance, instead of short-circuiting on it. This
makes public SearXNG backups actually take over when the primary instance is
up but its upstream engines are rate-limited (200-but-empty). Only return []
when every responding instance is empty; still raise SearchError only when
every instance hard-fails (unreachable/non-200/non-JSON).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-07 17:04:43 -07:00
User
53f0d50e7a M3: search — SearXNG container, searcher service, orchestrator /search
- searcher: file-based instance list (mtime-reloaded, hand-editable), failover
  across instances, URL normalization + dedup, Redis search cache (300s TTL)
- searxng: pinned settings.yml with JSON format enabled and limiter disabled,
  secret from SEARXNG_SECRET env; wired into compose with config volume
- orchestrator: /search proxying the searcher with per-stage trace; searcher
  included in aggregated /health

Verified against a mock SearXNG: failover past a dead instance, dedup of
trailing-slash duplicates, non-http URL filtering, cache miss/hit flags.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-05 22:07:10 -07:00