class Solr3Service extends SolrService (View source)

Properties

Methods

protected
coreCommand($command, $core, $params = array())

Handle encoding the GET parameters and making the HTTP call to execute a core command

public
bool
coreIsActive($core)

Is the passed core active?

public
Apache_Solr_Response
coreCreate($core, $instancedir, $config = null, $schema = null, $datadir = null)

Create a new core

public
Apache_Solr_Response
coreReload($core)

Reload a core

public
serviceForCore($core)

Create a new Solr3Service_Core instance for the passed core

Details

protected coreCommand($command, $core, $params = array())

Handle encoding the GET parameters and making the HTTP call to execute a core command

Parameters

$command
$core
$params

bool coreIsActive($core)

Is the passed core active?

Parameters

$core

string - The name of the core

Return Value

bool
  • True if that core exists & is active

Apache_Solr_Response coreCreate($core, $instancedir, $config = null, $schema = null, $datadir = null)

Create a new core

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

Return Value

Apache_Solr_Response

Apache_Solr_Response coreReload($core)

Reload a core

Parameters

$core

string - The name of the core

Return Value

Apache_Solr_Response

Solr3Service_Core serviceForCore($core)

Create a new Solr3Service_Core instance for the passed core

Parameters

$core

string - The name of the core

Return Value

Solr3Service_Core