CoreAdminTrait
Trait CoreAdminTrait is the trait that helps with Admin operations.
Core operations, such as reload, load, create, unload etc. are supplied by this trait.
Table of Contents
Properties
Methods
- coreCreate() : bool
- Create a new core
- coreReload() : StatusResult|null
- Reload the given core
- coreStatus() : StatusResult|null
- Get the core status
- coreUnload() : StatusResult|null
- Remove a core from Solr
Properties
$admin
protected
Query
$admin
A core admin object
$client
protected
Client
$client
The current client
Methods
coreCreate()
Create a new core
public
coreCreate( $core, ConfigStore $configStore) : bool
Parameters
- $core :
-
string - The name of the core
- $configStore : ConfigStore
Tags
Return values
boolcoreReload()
Reload the given core
public
coreReload( $core) : StatusResult|null
Parameters
Return values
StatusResult|nullcoreStatus()
Get the core status
public
coreStatus(string $core) : StatusResult|null
Parameters
- $core : string
Return values
StatusResult|nullcoreUnload()
Remove a core from Solr
public
coreUnload(string $core) : StatusResult|null
Parameters
- $core : string
-
core name
Return values
StatusResult|null —A result is successful