Help:Configuration parameter "$smwgSearchByPropertyFuzzy"

From semantic-mediawiki.org
Jump to: navigation, search
edit with form (experimental)


Title $smwgSearchByPropertyFuzzy
Description Sets whether the "Search by property" special page should display nearby results
Default setting See below
Software Semantic MediaWiki
First version supported 1.1.0
Last version supported still available
Configuration Interface settings · Facts display
Keyword Interface settings · Special page

$smwgSearchByPropertyFuzzy is a configuration parameter that is used to set whether the "Search by property" special page should display nearby results if there are only few results available. The setting was introduced in Semantic MediaWiki 1.1.0. It may be switched off if this special page has performance problems.

Starting with Semantic MediaWiki 2.1.0 this setting works for properties of datatype "Number", "Text" or "Date". Before that only properties of datatype "Number" displayed nearby results.

Default setting

Semantic MediaWiki ≥ 2.1.0
$smwgSearchByPropertyFuzzy = array( '_num', '_txt', '_dat' );
Semantic MediaWiki < 2.1.0
$smwgSearchByPropertyFuzzy = 'true';

Changing the default setting

Disabling

To disable page-related special properties the following setting is used:

$smwgSearchByPropertyFuzzy = array( ); // Semantic MediaWiki ≥ 2.1.0 only

or

$smwgSearchByPropertyFuzzy = 'false'; // all versions

Changing

Starting with Semantic MediaWiki 2.1.0 the default setting my be changed to another set of datatypes. There are different possibilities to do so by overriding the existing configuration with a different set of labels corresponding to the respective datatypes.

$smwgSearchByPropertyFuzzy = array( '_num', '_dat' );

or

$smwgSearchByPropertyFuzzy = array( '_txt' );

etc.