for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PSolr\Request;
/**
* @see http://wiki.apache.org/solr/StatsComponent
*/
class Stats extends SolrRequest implements ComponentInterface
{
* {@inheritDoc}
public function preMergeParams(SolrRequest $request) {}
public function init()
$this->stats();
}
* @param bool $stats
*
* @return \PSolr\Request\Stats
public function stats($stats = true)
__construct()
return $this->set('stats', (bool) $stats);
* @param string $field
public function addField($field)
return $this->add('stats.field', $field);
* @param string $facet
public function addFacet($facet)
return $this->add('stats.facet', $facet);