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); }
/** * Commits the data in the core. * * This will make all data which was sent previously, but not commited, * available for search. * * @return array Decoded response from the Solr server. */ public function commit() { $update = new Update(); $update->commit(); return $this->update($update); }