Search Module
Which ResourceLoader module to use for search suggestions.Valid values:
'skins.citizen.search'- Citizen’s enhanced search with typeahead (recommended)'mediawiki.searchSuggest'- MediaWiki core search'custom'- Use a custom module (must be registered separately)
The Citizen search module provides a better user experience with rich previews, thumbnails, and keyboard navigation. Only change this if you have specific requirements.
Search Gateway
Which API gateway to use for fetching search suggestions.Valid values:
'mwRestApi'- MediaWiki REST API (recommended, requires MW 1.35+)'mwActionApi'- MediaWiki Action API (legacy)'custom'- Use a custom gateway (must be implemented in JS)
Search Results
Description Source
The source for short descriptions shown in search suggestions.Valid values:
'textextracts'- Use TextExtracts extension (requires TextExtracts)'pagedescription'- Use PageDescription if available'wikidata'- Use Wikidata descriptions (requires Wikibase)
TextExtracts is bundled with MediaWiki core and provides high-quality excerpts from page content. Other sources require specific extensions to be installed.
Maximum Results
The maximum number of suggestions displayed in search results.Higher values show more results but may impact performance on slower connections.Example:
Command Palette
The command palette is Citizen’s powerful quick-access feature that combines search, navigation, and commands in one interface.Enable or disable the command palette feature.The command palette (activated by pressing
/ or clicking the search icon) provides:- Quick page search with rich previews
- Recent pages history
- Related articles
- Special page commands
- Namespace filtering
- Action commands (edit, history, etc.)
When disabled, Citizen falls back to the traditional search module specified in
$wgCitizenSearchModule.Search Extensions Integration
Citizen automatically detects and integrates with popular MediaWiki search extensions:AdvancedSearch
When the AdvancedSearch extension is installed, Citizen displays an “Advanced Search” option in search results.MediaSearch
When the MediaSearch extension is installed, Citizen adds a “Media Search” option to search for files and media.Semantic MediaWiki
Citizen includes a special search client (smwAskApi) for Semantic MediaWiki installations, enabling semantic queries through the search interface.
Complete Example
Search Clients
Citizen includes several built-in search clients (inresources/skins.citizen.search/searchClients/):
Troubleshooting
Search Not Working
-
Check that your search backend is configured:
-
Verify REST API is enabled for
mwRestApigateway: - Check browser console for JavaScript errors