kyoushu/solr-serve

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

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: 2021-11-29 02:30:48 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();