API: Properly handle limit and continuation for generator=prefixsearch
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 4 Mar 2015 14:30:14 +0000 (09:30 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Wed, 4 Mar 2015 14:30:14 +0000 (09:30 -0500)
commit8f24df2ac7e5a84c34dec8b5b6ca444b722d857a
tree21a49610c151880b3049fb752f18fe1446d2c3ef
parent579d6e75554610c03d1096d61bf1d4b2f680468c
API: Properly handle limit and continuation for generator=prefixsearch

The search engine is queried for limit+1 titles, so we know whether to
output a continuation value. Actually do this for generator mode,
instead of just returning the limit+1 titles.

Bug: T91503
Change-Id: Ib80c6d3fa9e8b52ae1f5c58fbe74c8e909329e59
includes/api/ApiQueryPrefixSearch.php