public function Solr36Connector::search in Search API Solr 4.x
Executes a search query and returns the raw response.
Parameters
\Solarium\QueryType\Select\Query\Query $query: The Solarium select query object.
\Solarium\Core\Client\Endpoint|null $endpoint: (optional) The Solarium endpoint object.
Return value
\Solarium\Core\Client\Response The Solarium response object.
Throws
\Drupal\search_api_solr\SearchApiSolrException
Overrides SolrConnectorPluginBase::search
File
- modules/
search_api_solr_legacy/ src/ Plugin/ SolrConnector/ Solr36Connector.php, line 73
Class
- Solr36Connector
- Class Solr36Connector.
Namespace
Drupal\search_api_solr_legacy\Plugin\SolrConnectorCode
public function search(Query $query, ?Endpoint $endpoint = NULL) {
$params = $query
->getParams();
if (!isset($params['q.op'])) {
$query
->addParam('q.op', 'OR');
}
return parent::search($query, $endpoint);
}