* @license http://github.com/basdenooijer/solarium/raw/master/COPYING * @link http://www.solarium-project.org/ * * @package Solarium * @subpackage Client */ /** * Build an analysis request * * @package Solarium * @subpackage Client */ class Solarium_Client_RequestBuilder_Analysis extends Solarium_Client_RequestBuilder { /** * Build request for an analysis query * * @param Solarium_Query_Analysis $query * @return Solarium_Client_Request */ public function build($query) { $request = parent::build($query); $request->addParam('analysis.query', $query->getQuery()); $request->addParam('analysis.showmatch', $query->getShowMatch()); return $request; } }