* @license http://github.com/basdenooijer/solarium/raw/master/COPYING * @link http://www.solarium-project.org/ * * @package Solarium * @subpackage Client */ /** * Build a field analysis request * * @package Solarium * @subpackage Client */ class Solarium_Client_RequestBuilder_Analysis_Field extends Solarium_Client_RequestBuilder_Analysis { /** * Build request for an analysis field query * * @param Solarium_Query_Analysis_Field $query * @return Solarium_Client_Request */ public function build($query) { $request = parent::build($query); $request->addParam('analysis.fieldvalue', $query->getFieldValue()); $request->addParam('analysis.fieldname', $query->getFieldName()); $request->addParam('analysis.fieldtype', $query->getFieldType()); return $request; } }