Search feature "SMWSearch"

From semantic-mediawiki.org
Jump to: navigation, search
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.
Image / Video collection
Keywords

The SMWSearch feature is supported since Semantic MediaWiki 2.1.01. 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. Users of SMWSearch should use the following settings:

Usage

Entering [[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:

NoteNote:  The display of results will be styled as special page "Special:Search" usually outputs search results.

Configuration

$wgSearchType = 'SMWSearch';
$smwgFallbackSearchType = null; // default

NoteNote:

  • $wgSearchType is a setting parameter provided by MediaWiki itself while the option SMWSearch is provided by Semantic MediaWiki.
  • If $wgSearchType was set to anything other than null prior to changing it to SMWSearch you will have to set $smwgFallbackSearchType to this preceding setting or choose an alternative default search engine.