ApiQuerySearch: Match limits to those in Special:Search
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 24 Feb 2016 21:22:39 +0000 (16:22 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Wed, 24 Feb 2016 21:22:39 +0000 (16:22 -0500)
The limits were decreased in r55615, but no one seems to remember why.

Bug: T119189
Change-Id: I622203195ed5dbed9548bb4a9a6acdab8e3bc3ed

includes/api/ApiQuerySearch.php

index 44b3d4c..2eb5d14 100644 (file)
@@ -351,8 +351,8 @@ class ApiQuerySearch extends ApiQueryGeneratorBase {
                                ApiBase::PARAM_DFLT => 10,
                                ApiBase::PARAM_TYPE => 'limit',
                                ApiBase::PARAM_MIN => 1,
-                               ApiBase::PARAM_MAX => ApiBase::LIMIT_SML1,
-                               ApiBase::PARAM_MAX2 => ApiBase::LIMIT_SML2
+                               ApiBase::PARAM_MAX => ApiBase::LIMIT_BIG1,
+                               ApiBase::PARAM_MAX2 => ApiBase::LIMIT_BIG2
                        ],
                        'interwiki' => false,
                        'enablerewrites' => false,