$smwgSearchByPropertyFuzzy
Configuration parameter details: | |
Name | $smwgSearchByPropertyFuzzy |
Description | Sets whether special page "Search by property" should display nearby results |
Default setting | See below |
Software | Semantic MediaWiki |
Since version | |
Until version | still available |
Configuration | Interface settings · Facts display |
Keyword | interface settings · special page |
$smwgSearchByPropertyFuzzy
is a configuration parameter that is used to set whether the special page "SearchByProperty"Allows to search the wiki by properties or property value combinations special page should display nearby results if there are only a few results available. The configuration parameter was introduced in Semantic MediaWiki 1.1.0Released on 21 April 2008 and compatible with MW 1.10.x - 1.13.x.. It may be switched off if this special page has performance problems.
Starting with Semantic MediaWiki 2.1.0Released on 19 January 2015 and compatible with MW 1.19.0 - 1.24.x. this setting works for properties of datatype "Number"Holds integer and decimal numbers, with an optional exponent, datatype "Text"Holds text of arbitrary length or datatype "Date"Holds particular points in time.1 Before that only properties of datatype "Number"Holds integer and decimal numbers, with an optional exponent displayed nearby results.
Default setting[edit]
$smwgSearchByPropertyFuzzy = [ '_num', '_txt', '_dat' ];
This means that this feature is enabled for properties of datatype "Number"Holds integer and decimal numbers, with an optional exponent, datatype "Text"Holds text of arbitrary length, and datatype "Date"Holds particular points in time.
Changing the default setting[edit]
To modify the setting to this configuration parameter, add one of the following lines to your "LocalSettings.php" file after the enableSemantics()
call:
- Change the feature for properties of selected datatypes only
$smwgSearchByPropertyFuzzy = [ '_num', '_dat' ];
This means that this feature is enabled for properties of datatype "Number"Holds integer and decimal numbers, with an optional exponent and datatype "Date"Holds particular points in time.
- Change the feature for properties of selected datatype only
$smwgSearchByPropertyFuzzy = [ '_txt' ];
This means that this feature is enabled for datatype "Text"Holds text of arbitrary length properties.
- Disable the feature
$smwgSearchByPropertyFuzzy = [ ];
References
- a b Semantic MediaWiki: GitHub pull request gh:smw:537