Repository navigation
Route social media searches to the correct SearXNG category - #453
Merged
Eigenwise merged 1 commit intoNov 17, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The public input accepts
social_media, but SearXNG's category is namedsocial 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_mediain the public input/output schemas, so callers retain the same interface. General, news and unrestricted searches retain their existing behavior.Validation
general,news,social_mediaandNone: 4 failed, 12 passed on unchanged source; all 16 pass after repair.parse_genericandPreferencesare exercised through real local HTTP requests, with an offline engine catalog and deterministic response fixtures. Before repair, all four social searches selectgeneraland return no results. After repair, all selectsocial mediaand retain the matching result; all 12 controls also 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.