class SolrConfigStore_File implements SolrConfigStore (View source)

Class SolrConfigStore_File

A ConfigStore that uploads files to a Solr instance on a locally accessible filesystem by just using file copies

Methods

public
__construct($config)

No description

public
getTargetDir($index)

No description

public
null
uploadFile($index, $file)

Upload a file to Solr for index $index

public
null
uploadString($index, $filename, $string)

Upload a file to Solr from a string for index $index

public
instanceDir($index)

Get the instanceDir to tell Solr to use for index $index

Details

__construct($config)

No description

Parameters

$config

getTargetDir($index)

No description

Parameters

$index

null uploadFile($index, $file)

Upload a file to Solr for index $index

Parameters

$index

string - The name of an index (which is also used as the name of the Solr core for the index)

$file

string - A path to a file to upload. The base name of the file will be used on the remote side

Return Value

null

null uploadString($index, $filename, $string)

Upload a file to Solr from a string for index $index

Parameters

$index

string - The name of an index (which is also used as the name of the Solr core for the index)

$filename

string - The base name of the file to use on the remote side

$string

Return Value

null

instanceDir($index)

Get the instanceDir to tell Solr to use for index $index

Parameters

$index

string - The name of an index (which is also used as the name of the Solr core for the index)