Пример #1
0
 public function testBuildAddXmlSingleDocumentWithBoost()
 {
     $doc = new Solarium_Document_ReadWrite(array('id' => 1));
     $doc->setBoost(2.5);
     $command = new Solarium_Query_Update_Command_Add();
     $command->addDocument($doc);
     $this->assertEquals('<add><doc boost="2.5"><field name="id">1</field></doc></add>', $this->_builder->buildAddXml($command));
 }