$smwgQRandSortingSupport

From semantic-mediawiki.org


Configuration parameter details:
Name $smwgQRandSortingSupport
Description Sets whether random sorting of query results should be possible
Default setting
true
(Other) available settings
false

Allows to disable the possibility of sorting query results randomly

Software Semantic MediaWiki
Since version
Until version still available
Configuration Query settings
Keyword query · sorting · semantic search


$smwgQRandSortingSupport is a configuration parameter that sets whether random sorting of query results should be possible. The configuration parameter was introduced in Semantic MediaWiki 1.4.0Released on 21 November 2008 and compatible with MW 1.13.x - 1.16.x.1 and deprecated with Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x.2.

This configuration parameter was deprecated with Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x. in favour of option SMW_QSORT_RANDOM to configuration parameter $smwgQSortFeaturesSets the behaviour for the sorting features of the semantic search streamlining the overall configuration of Semantic MediaWiki.2 Thus you are advised to migrate your settings in "LocalSettings.php" to the new configuration parameter since this one will be removed with the release of Semantic MediaWiki 3.1.0Released on 23 September 2019 and compatible with MW 1.31.0 - 1.33.x. in 2019.

Default setting[edit]

$smwgQRandSortingSupport = true;

This means that random sorting of query results is possible.

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:

Disable random sorting
$smwgQRandSortingSupport = false;

This means that random sorting of query results is not possible.

See also[edit]

References

  1. ^  Semantic MediaWiki: Phabricator task mw:phab:T16978
  2. a b  Semantic MediaWiki: GitHub pull request gh:smw:2821