Support custom offsets from SearchResultSet
authorErik Bernhardson <ebernhardson@wikimedia.org>
Wed, 19 Jul 2017 04:19:48 +0000 (21:19 -0700)
committerErik Bernhardson <ebernhardson@wikimedia.org>
Wed, 19 Jul 2017 04:22:49 +0000 (21:22 -0700)
commit7fd6ef9ca58709c5f7b579812b421852f5f19843
treea403bca673b01e9d5f4e8909623af50f2b3e9df1
parentceb1eb3e1c93c834040c633b14fc23402eb45a42
Support custom offsets from SearchResultSet

Work to support interleaved AB testing of search will display
interleaved results of two search configurations on the first page of
results, but standard results on all pages other than the first page.
This means that while 20 results may be requested, the next 'new' result
of the primary query may be at position 10. Allow the SearchResultSet
to declare what the new offset is.

Bug: T150032
Change-Id: I14c0c33249fcdb66f72f5966e2aa72781a34daee
includes/search/SearchResultSet.php
includes/specials/SpecialSearch.php