Push common search api parameters into SearchApi class
authorErik Bernhardson <ebernhardson@wikimedia.org>
Thu, 2 Jun 2016 20:32:59 +0000 (13:32 -0700)
committerErik Bernhardson <ebernhardson@wikimedia.org>
Tue, 26 Jul 2016 15:56:00 +0000 (08:56 -0700)
commit5da2c4197d3cf176f8b6ebae9dd25eee39655708
tree265c1df8ae640f4815fec1965bf9b400ab88d473
parent5e65ae8f645bc83e32c48e5d1bcfa6a88100796b
Push common search api parameters into SearchApi class

We have a number of parameters that are pretty much the same between
these different search api's. Lets make them actually the same by
sharing the definitions, and then letting individual classes tweak them
as needed by removing the offset, or adjusting the max limits as
necessary.

Change-Id: I6f987db8ecb63dc943b4d2518bfe3703c677448e
includes/api/ApiOpenSearch.php
includes/api/ApiQueryPrefixSearch.php
includes/api/ApiQuerySearch.php
includes/api/SearchApi.php
tests/phpunit/includes/api/ApiOpenSearchTest.php [new file with mode: 0644]