Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?PHP
- $options = array
- (
- 'hostname' => 'ww.xx.yy.zz',
- 'port' => 1234,
- 'path' => '/solr',
- 'wt' => 'phpnative'
- );
- $client = new SolrClient($options);
- $query = new SolrQuery();
- $query->setQuery("*:*");
- $query->set("objectClassName", "SolrClass");
- $query->set("objectPropertiesStorageMode", 0); // 0 for independent properties, 1 for combined
- $response = $client->query($query);
- print_r($response);
- echo '<BR><BR>';
- $resp = $response->getResponse();
- php print_r($resp);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement