SilverStripe\FullTextSearch\Solr\Services\SolrService::coreCreate
Create a new core
Signature
public function coreCreate(string
$core,
string
$instancedir,
[string
$config = NULL,
[string
$schema = NULL,
[string
$datadir = NULL]]] )
Parameters
$core
—
string
- The name of the core
$instancedir
—
string
- The base path of the core on the server
$config
—
string
- The filename of solrconfig.xml on the server. Default is $instancedir/solrconfig.xml
$schema
—
string
- The filename of schema.xml on the server. Default is $instancedir/schema.xml
$datadir
—
string
- The path to store data for this core on the server. Default depends on solrconfig.xml
Returns
- Apache_Solr_Response