$smwgQMaxLimit

From semantic-mediawiki.org


Configuration parameter details:
Name $smwgQMaxLimit
Description Sets the maximal number of results ever retrieved by queries
Default setting
10000
Software Semantic MediaWiki
Since version
Until version still available
Configuration Basic settings · Query settings
Keyword number of results · special query


$smwgQMaxLimit is a configuration parameter that sets the maximal number of results ever retrieved, even when using special query pages even if more results are expected. The configuration parameter was introduced in Semantic MediaWiki 1.0Released on 31 December 2007 and compatible with MW 1.9.x - 1.12.x..

Note that the limit set with this configuration parameter does not apply to result format "Count"Returns just the number of results, instead of the results themselves..

Until Semantic MediaWiki 2.5.3Released on 8 July 2017 and compatible with MW 1.23.0 - 1.29.x.1 there was a bug which resulted in embedded queries or special page "Ask"Provides an interface that assists users with creating and executing semantic queries to fall back to the limit "100" if the limit set for it surpassed the limit which was set with this configuration parameter.2

Default setting[edit]

$smwgQMaxLimit = 10000;

This means that embedded queries or special page "Ask"Provides an interface that assists users with creating and executing semantic queries will retrieve a maximum number of "10000" results even if more results are expected.

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:

Reduce the maximum limit
$smwgQMaxLimit = 5000;

This means that embedded queries or special page "Ask"Provides an interface that assists users with creating and executing semantic queries will retrieve a maximum number of "5000" results even if more results are expected.

Increase the maximum limit
$smwgQMaxLimit = 20000;

This means that embedded queries or special page "Ask"Provides an interface that assists users with creating and executing semantic queries will retrieve a maximum number of "20000" results even if more results are expected.

See also[edit]


References

  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:2474
  2. ^  Semantic MediaWiki: GitHub pull request gh:smw:242