Status: | effective |
Progress: | 100% |
Version: | 2.1.0+ |
$smwgSearchByPropertyFuzzy
Configuration parameter details: | |
Name | $smwgSearchByPropertyFuzzy |
Description | Property "Has description" (as page type) with input value "Sets whether special page "Search by property" should display nearby results" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process. |
Default setting | See below |
Software | Semantic MediaWiki |
Since version | |
Until version | still available |
Configuration | Interface settings · Facts display |
Keyword | interface settings · special page |
__NOBREADCRUMBLINKS__
$smwgSearchByPropertyFuzzy
is a configuration parameter that is used to set whether the special page "SearchByProperty"No description was provided. 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 an unknown date unknown versions of MediaWiki. It may be switched off if this special page has performance problems.
Starting with Semantic MediaWiki 2.1.0Released on an unknown date unknown versions of MediaWiki 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
$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
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 = [ ];