Exemplo n.º 1
0
 /**
  * Add request settings for the debug component
  *
  * @param Solarium_Query_Select_Component_Debug $component
  * @param Solarium_Client_Request $request
  * @return Solarium_Client_Request
  */
 public function build($component, $request)
 {
     $request->addParam('debugQuery', 'true');
     $request->addParam('debug.explain.structured', 'true');
     $request->addParam('explainOther', $component->getExplainOther());
     return $request;
 }
Exemplo n.º 2
0
 public function testSetAndGetExplainOther()
 {
     $value = 'id:24';
     $this->_debug->setExplainOther($value);
     $this->assertEquals($value, $this->_debug->getExplainOther());
 }