Ejemplo n.º 1
0
 public function testQueryParams1()
 {
     $update = new Update();
     $update->commit();
     $update->optimize();
     $update->overwrite();
     $update->commitWithin(10);
     $expected = "commit=true&optimize=true&overwrite=true&commitWithin=10";
     $actual = $update->render();
     $this->assertSame($expected, $actual);
 }
Ejemplo n.º 2
0
 /**
  * Optimizes the data in the core.
  *
  * @return array Decoded response from the Solr server.
  */
 public function optimize()
 {
     $update = new Update();
     $update->optimize();
     return $this->update($update);
 }