Пример #1
0
 /**
  * Returns the number of records in the core.
  *
  * @param  string $query If given, will count documents matching the query.
  *
  * @return integer
  */
 public function count($query = "*:*")
 {
     $select = Solr::select()->search($query)->rows(0);
     $result = $this->select($select);
     return $result['response']['numFound'];
 }