wiki.techinc.nl/includes/search/PaginatingSearchEngine.php
Erik Bernhardson 2a43939ffb Push pagination decision for search into SearchEngine
Various code using the search engine shouldn't need to implement it's
own methods, such as over-fetching, to determine if there are more
results available. This should be knowledge internal to search that is
exposed by a boolean.

Change-Id: Ica094428700637dfdedb723b03f6aeadfe12b9f4
2018-06-11 13:35:44 -07:00

12 lines
411 B
PHP

<?php
/**
* Marker class for search engines that can handle their own pagination, by
* reporting in their SearchResultSet when a next page is available. This
* only applies to search{Title,Text} and not to completion search.
*
* SearchEngine implementations not implementing this interface will have
* an over-fetch performed to determine next page availability.
*/
interface PaginatingSearchEngine {
}