In this article
A SearXNG query contains both search terms and routing syntax; preserve both when explaining the selected engines, language, and result path.
Keep the original expression
A bilingual reference tool may submit a query containing an engine shortcut and a language modifier. Removing punctuation during normalization can change that request into ordinary words. Preserve the exact expression before parsing, together with the application’s intended language and retrieval scope. This makes differences between runs explainable without reconstructing intent from the final answer.
Interpret local selectors
The search syntax guide defines ! selectors for engines or categories and : for language selection. Its engine/category selectors are inclusive and can be combined. Do not treat a chain as a sequence in which only the last selector survives; that would change the chosen search scope before any upstream engine received the question.
Separate routing from external syntax
The Search API explains that remaining query text is passed to external services and that their operator support can differ. A familiar site: expression is therefore not a universal SearXNG enforcement guarantee across every engine. Log the selected engines and inspect their returned URLs when a task depends on a restriction.
For a language-specific encyclopedia lookup, compare the modifier with the actual page language. Engine settings also documents engine language overrides and optional forwarding through Accept-Language. Keep the effective configuration available; the visible query is not the only place where language behavior may be determined.
Distinguish external bangs and redirects
The syntax guide describes !! external bangs and a first-result redirect form. These route the user differently from ordinary metasearch results. A client that expects a result collection should not silently follow either as though it received a normal page list. Make the navigation behavior explicit and preserve where the actual search or page visit occurred.
Test the parser boundary
Use stored expressions with a language modifier, combined local selectors, and an external bang. Verify the normalized search terms separately from routing decisions. Include an engine that does not support a chosen upstream operator so the application can report that limitation without claiming a strict filter was enforced.
The guides to exact identifiers and tool observations support this inspection. The desired artifact records the literal expression, interpreted scope, and observed response path, allowing a reviewer to distinguish query transformation from a change in the underlying evidence.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.