SilverStripe solr Search

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

$admin  : Query
$client  : Client

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

Methods

coreCreate()

Create a new core

public coreCreate( $core, ConfigStore $configStore) : bool
Parameters
$core :

string - The name of the core

$configStore : ConfigStore
Tags
throws
Exception
throws
HTTPException
Return values
bool

coreReload()

Reload the given core

public coreReload( $core) : StatusResult|null
Parameters
$core :
Return values
StatusResult|null

coreStatus()

Get the core status

public coreStatus(string $core) : StatusResult|null
Parameters
$core : string
Return values
StatusResult|null

coreUnload()

Remove a core from Solr

public coreUnload(string $core) : StatusResult|null
Parameters
$core : string

core name

Return values
StatusResult|null

A result is successful


        
On this page

Search results