$smwgSearchByPropertyFuzzy

From Linux Web Expert

Revision as of 14:47, 20 March 2023 by >Kghbln (style improvements)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Template:Interlanguagelink: en
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.

The default setting for this configuration parameter was changed starting with Semantic MediaWiki 2.1.0Released on an unknown date unknown versions of MediaWiki.1 See this version of the documentation available for releases prior to Semantic MediaWiki 2.1.0Released on an unknown date unknown versions of MediaWiki.

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:

Starting with Semantic MediaWiki 2.1.0Released on an unknown date unknown versions of MediaWiki, the default setting may be changed to another set of datatypes. Different possibilities exist to redefine the existing configuration with other labels corresponding to the respective datatypes, as shown in the configuration examples below.
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.

This setting is equivalent to the behavior in earlier versions than Semantic MediaWiki 2.1.0Released on an unknown date unknown versions of MediaWiki.
Disable the feature
$smwgSearchByPropertyFuzzy = [ ];
#scite could not render a citation text for reference "gh:smw:537" because type "pullrequest" was not assigned to a template.

References

  1. a b gh:smw:537