Skip to content

Route social media searches to the correct SearXNG category - #453

Merged
Eigenwise merged 1 commit into
Eigenwise:mainfrom
Afloat16:fix/searxng-social-category-20261116
Nov 17, 2026
Merged

Eigenwise merged 1 commit into
Eigenwise:mainfrom
Afloat16:fix/searxng-social-category-20261116

Conversation

@Afloat16

Copy link
Copy Markdown
Contributor

Problem

The public input accepts social_media, but SearXNG's category is named social media. Sending the underscored name causes the server's category parser to ignore it. Result filtering also compares against the underscored name, so real social-media hits are discarded.

The same issue exists in the standalone Forge tool and its deep-research, orchestration and web-search example copies.

Change

Translate the existing public category once before requesting and filtering results. Keep social_media in the public input/output schemas, so callers retain the same interface. General, news and unrestricted searches retain their existing behavior.

Validation

  • New tests cover all four distributed tools across general, news, social_media and None: 4 failed, 12 passed on unchanged source; all 16 pass after repair.
  • Including existing standalone tests: 23 passed on locked and lowest-direct dependencies.
  • Native SearXNG parse_generic and Preferences are exercised through real local HTTP requests, with an offline engine catalog and deterministic response fixtures. Before repair, all four social searches select general and return no results. After repair, all select social media and retain the matching result; all 12 controls also pass.
  • Complete core suites: 1,373 passed, 14 skipped on both dependency sets. Repository-wide Black, Flake8, constructor typing and fresh-install checks pass.

The four-job validation run records unchanged-source and repaired native behavior. The current pytest-asyncio check explicitly selects function scope because the tool's existing INI file quotes that value. No live search-provider or model requests are needed.

@Eigenwise
Eigenwise merged commit 0c0f17b into Eigenwise:main Nov 17, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants