Manual talk:$wgMWSuggestTemplate
Latest comment: 16 years ago by Maiden taiwan in topic Increase number of search results returned by AJAX
Increase number of search results returned by AJAX
editHere's a quick way to increase the number of search results returned by AJAX Search. It works for a default installation of MediaWiki 1.13. In LocalSettings.php:
$wgMWSuggestTemplate = SearchEngine::getMWSuggestTemplate() . '&limit=20';
example
editTry this to search into your configured namespaces:
$wgMWSuggestTemplate = $wgServer . $wgScriptPath . '/api.php?action=opensearch&search={searchTerms}&limit=20&namespace={namespaces}';
Or to specify namespaces, for example:
$wgMWSuggestTemplate = $wgServer . $wgScriptPath . '/api.php?action=opensearch&search={searchTerms}&limit=20&namespace=100|104|106|108';
But it seems that MW (1.13.3) do searches only into the first namespace