Final page of search results sometimes having erroneous "next" link
Pre-patch: In the showResults method of the SpecialSearch class, a request is made
through the appropriate SearchEngine object for a single page (according to the
specified page size) of search results. With this approach, it's impossible for the
page formatter to determine whether an additional page is useful when a result set no
smaller than the requested size is returned.
Post-patch: The solution is to request an extra result, which we do not display, but we
do include in our result count. Display of the extra result is avoided by modifying
SpecialSearch->showMatches() to explicitly honor the limit property of its calling
instance. The criterion for not linking to a next page is then updated from
results < limit.
which enables the next link whenever the current results page is full, to
results <= limit
which enables the next link only when there will be results displayed on the next page.
Bug: 19938
Change-Id: Ic30586e217fbde4b9d0aeda277a77030c4dce216