Manual talk:$wgMWSuggestTemplate
Add topicAppearance
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
[edit]Here'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';
--Maiden taiwan 02:45, 19 August 2008 (UTC)
example
[edit]Try 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