protected function Apache_Solr_Service::_initUrls in Apache Solr Search 5
Construct the Full URLs for the three servlets we reference
4 calls to Apache_Solr_Service::_initUrls()
- Apache_Solr_Service::setHost in SolrPhpClient/
Apache/ Solr/ Service.php - Set the host used. If empty will fallback to constants
- Apache_Solr_Service::setPath in SolrPhpClient/
Apache/ Solr/ Service.php - Set the path used. If empty will fallback to constants
- Apache_Solr_Service::setPort in SolrPhpClient/
Apache/ Solr/ Service.php - Set the port used. If empty will fallback to constants
- 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 250
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
protected function _initUrls() {
//Initialize our full servlet URLs now that we have server information
$this->_updateUrl = $this
->_constructUrl(self::UPDATE_SERVLET, array(
'wt' => self::SOLR_WRITER,
));
$this->_searchUrl = $this
->_constructUrl(self::SEARCH_SERVLET);
$this->_threadsUrl = $this
->_constructUrl(self::THREADS_SERVLET, array(
'wt' => self::SOLR_WRITER,
));
$this->_urlsInited = true;
}