kyoushu/solr-serve

This package is abandoned and no longer maintained. No replacement package was suggested.

A library for managing instances of Solr to aid unit tests

dev-master 2018-07-18 09:57 UTC

This package is auto-updated.

Last update: 2023-01-15 19:29:27 UTC


README

A library for managing instances of Solr to aid unit tests

Usage Example

$manager = new \Kyoushu\SolrServe\PackageManager('/tmp/solr-packages');
$package = $manager->createPackage('7.4.0')->download()->unpack();
$server = $package->createServer([
    'core_name' => 'foo',
    'dir' => '/tmp/foo',
    'port' => 9000
]);
$server->initialise();
$server->start();
// Do things with Solr here...
$server->stop();