$smwgQMaxSize

From Linux Web Expert


Template:Interlanguagelink: en
Configuration parameter details:
Name $smwgQMaxSize
Description Property "Has description" (as page type) with input value "Sets the maximum number of conditions for [[Help:Inline queries|inline queries" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
Default setting Has default::12
Software Semantic MediaWiki
Since version
Until version still available
Configuration Query settings · inline queries · Query features · Query performance
Keyword inline queries


__NOBREADCRUMBLINKS__

$smwgQMaxSize is a configuration parameter that sets the maximum number of conditions for inline queries. The configuration parameter was introduced in Semantic MediaWiki 1.0Released on an unknown date unknown versions of MediaWiki.

If unsure use result format "Debug" (format=debug) for the respective inline query to determine its size.

Default setting

$smwgQMaxSize = 12;

This means that a maximum of 12 query conditions can be used for inline queries.

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:

Increase the number of allowed conditions
$smwgQMaxSize = 18;

This means that a maximum of 18 query conditions can be used for inline queries.

Reduce the number of allowed conditions
$smwgQMaxSize = 6;

This means that a maximum of 6 query conditions can be used for inline queries.

See also