<?php
// Это мой собственный класс для объектов
class SolrClass
{
   public $_properties = array();
   public function __get($property_name) {
      if (property_exists($this, $property_name)) {
          return $this->$property_name;
      } else if (isset($_properties[$property_name])) {
          return $_properties[$property_name];
      }
      return null;
   }
}
$options = array
(
  'hostname' => 'localhost',
  'port' => 8983,
  'path' => '/solr/core1'
);
$client = new SolrClient($options);
$client->setResponseWriter("json");
//$response = $client->ping();
$query = new SolrQuery();
$query->setQuery("*:*");
$query->set("objectClassName", "SolrClass");
$query->set("objectPropertiesStorageMode", 1); // 0 для независимых объектов, 1 для совмещённых
try
{
$response = $client->query($query);
$resp = $response->getResponse();
print_r($response);
print_r($resp);
} catch (Exception $e) {
print_r($e);
}
?>