browser-search
browser-search copied to clipboard
searxng.mjs: keep pubdate, image/video fields and unresponsive engines; honor SEARXNG_URL; add timeout
After upgrading SearXNG to 2026.10.19, scripts/searxng/searxng.mjs drops useful data and has a few robustness gaps.
Data lost
- Many engines now fill only
pubdate, notpublishedDate. On a news query about 70% of results (79/108 in a test) havepubdate, but the script only readpublishedDate, so most dates came outnull. It now falls back topubdate. - Image results lose
img_src,thumbnail_srcandresolution; video results (new result type) loselength,iframe_src,thumbnailandauthor. These are now returned when present. unresponsive_engineswas discarded, so an agent could not tell that Google, DuckDuckGo, Startpage, Qwant, etc. were blocked and that results were partial. It is now returned, together withsuggestions,corrections,answersand compactinfoboxes.enginesis returned when more than one engine agrees on a result.- All previous keys are unchanged; new fields only appear when non-empty.
Robustness
- The base URL was hard-coded to
http://localhost:8080and ignoredSEARXNG_URL(whichcheck.shalready uses). It now honoursSEARXNG_URL(defaulthttp://127.0.0.1:8080). - Requests had no timeout. Added
SEARXNG_TIMEOUT_MS(default 30000); a timeout is reported as an error and does not trigger a container restart. - The automatic container restart is skipped when
SEARXNG_URLis set, since the script cannot know which container serves a custom URL. docker inspect --formatnow uses double quotes so it works incmd.exeas well.
Docs updated in SKILL.md (output format) and data/advanced-browsing-reference.md (new variables).
Released in v3.2.0.