public function SearchApiSolrDateSortSolrService::query in Search Api Solr Date Sort 7
Implements SearchApiServiceInterface::__construct().
The default implementation returns a SearchApiQuery object.
Overrides SearchApiAbstractService::query
File
- includes/
service.inc, line 15 - Contains SearchApiViewsEventsSolrService.
Class
- SearchApiSolrDateSortSolrService
- Extension class with generic implementation of most service methods.
Code
public function query(SearchApiIndex $index, $options = array()) {
// To Override the sort, we need to instantiate a different method.
return new SearchApiSolrDateSortQuery($index, $options);
}