Exemplo n.º 1
0
 /**
  * Makes a search query with the given criteria and returns the raw solr object.
  * Usually you should use the search() method instead.
  * @param ASolrCriteria $criteria the search criteria
  * @return SolrObject the response from solr
  */
 protected function rawSearch(ASolrCriteria $criteria)
 {
     if ($this->enableProfiling) {
         $profileTag = "packages.solr.AConnection.rawSearch(" . $criteria->__toString() . ")";
         Yii::beginProfile($profileTag);
     }
     $this->resetClient();
     // solr client is not safely reusable, reset before every request
     $response = $this->getClient()->query($criteria)->getResponse();
     if ($this->enableProfiling) {
         Yii::endProfile($profileTag);
     }
     return $response;
 }