You are here

protected function SearchApiSolrService::setRequestHandler in Search API Solr 7

Sets the request handler.

This should also make the needed adjustments to the request parameters.

Parameters

$handler: Name of the handler to set.

array $call_args: An associative array containing all three arguments to the SearchApiSolrConnectionInterface::search() call ("query", "params" and "method") as references.

Return value

bool TRUE iff this method invocation handled the given handler. This allows subclasses to recognize whether the request handler was already set by this method.

2 calls to SearchApiSolrService::setRequestHandler()
SearchApiSolrService::getAutocompleteSuggestions in includes/service.inc
SearchApiSolrService::search in includes/service.inc
Executes a search on the server represented by this object.

File

includes/service.inc, line 2067

Class

SearchApiSolrService
Search service class using Solr server.

Code

protected function setRequestHandler($handler, array &$call_args) {
  if ($handler == 'pinkPony') {
    $call_args['params']['qt'] = $handler;
    return TRUE;
  }
  return FALSE;
}