public function Apache_Solr_Service::setPath in Apache Solr Search 5
Set the path used. If empty will fallback to constants
Parameters
string $path:
1 call to Apache_Solr_Service::setPath()
- Apache_Solr_Service::__construct in SolrPhpClient/
Apache/ Solr/ Service.php - Constructor. All parameters are optional and will take on default values if not specified.
File
- SolrPhpClient/
Apache/ Solr/ Service.php, line 403
Class
- Apache_Solr_Service
- Starting point for the Solr API. Represents a Solr server resource and has methods for pinging, adding, deleting, committing, optimizing and searching.
Code
public function setPath($path) {
$path = trim($path, '/');
$this->_path = '/' . $path . '/';
if ($this->_urlsInited) {
$this
->_initUrls();
}
}