$this->timer('postExecute'); } public function preCreateQuery() { $this->timer('preCreateResult'); } public function postCreateQuery() { $this->timer('postCreateResult'); } } htmlHeader(); // create a client instance and register the plugin $plugin = new BasicDebug(); $client = new Solarium\Client($config); $client->registerPlugin('debugger', $plugin); // execute a select query and display the results $query = $client->createSelect(); $resultset = $client->select($query); echo 'NumFound: ' . $resultset->getNumFound(); foreach ($resultset as $document) { echo '<hr/><table>'; foreach ($document as $field => $value) { if (is_array($value)) { $value = implode(', ', $value); } echo '<tr><th>' . $field . '</th><td>' . $value . '</td></tr>'; } echo '</table>'; } // display the debug plugin output