* @license http://github.com/basdenooijer/solarium/raw/master/COPYING * @link http://www.solarium-project.org/ * * @package Solarium * @subpackage Query */ /** * Ping query * * Use a ping query to test Solr communication. * A ping query has only two options, the path to use and the resultclass. See * {@link Solarium_Query} for the methods to set these options. * * @package Solarium * @subpackage Query */ class Solarium_Query_Ping extends Solarium_Query { /** * Get type for this query * * @return string */ public function getType() { return Solarium_Client::QUERYTYPE_PING; } /** * Default options * * @var array */ protected $_options = array( 'resultclass' => 'Solarium_Result_Ping', 'handler' => 'admin/ping', ); }