Search feature "SMWSearch"
|Search feature information|
|This page describes the "SMWSearch" feature, i.e an search engine to allow semantic queries directly from MediaWiki's standard search interface.|
The SMWSearch feature is supported since Semantic MediaWiki 2.1.0Released on 19 January 2015 and compatible with MW 1.19.0 - 1.24.x.1. It provides a search engine to allow semantic queries directly from MediaWiki's standard search by trying to interpret the search term as a semantic query. If successful, the pages according to the query will be returned, if not it will fall back to the default search engine. Starting with Semantic MediaWiki 3.0.0Released on an unknown date and compatible with MW 1.27.0 - 1.30.x. special page "Search" will show an informatory message in case this feature was enabled as well as the optional input assistance feature.2
[[Category:City]] [[located in::Germany]] into the standard search field of the wiki's skin or on special page "Search" will return all pages matching this query, e.g. if used on this wiki:
Users of "SMWSearch" should use the following configuration settings in their "LocalSettings.php" file after the
$wgSearchType = 'SMWSearch'; $smwgFallbackSearchType = null; // default
- Configuration parameter
$wgSearchTypeis provided by MediaWiki itself while the option
SMWSearchis provided by Semantic MediaWiki.
$wgSearchTypewas set to anything other than
nullprior to changing it to
SMWSearchyou will have to set configuration parameter
$smwgFallbackSearchTypeSets the search engine to fall back to in case SMWSearch is used as custom search engine but is unable to interpret the search term as an semantic query. to this preceding setting or choose an alternative default search engine.