You are here

public function SolrBaseQuery::search in Apache Solr Search 6.3

Same name and namespace in other branches
  1. 8 Solr_Base_Query.php \SolrBaseQuery::search()
  2. 7 Solr_Base_Query.php \SolrBaseQuery::search()

Sends the search request to Solr, unless $query->abort_search is TRUE.

Parameters

string $keys: The search keys.

Return value

A stdClass response object.

Overrides DrupalSolrQueryInterface::search

File

./Solr_Base_Query.php, line 645
This class allows you to make operations on a query that will be sent to Apache Solr. methods such as adding and removing sorts, remove and replace parameters, adding and removing filters, getters and setters for various parameters and more

Class

SolrBaseQuery

Code

public function search($keys = NULL) {
  if ($this->abort_search) {
    return NULL;
  }
  return $this->solr
    ->search($keys, $this
    ->getSolrParams());
}