/** * initializes various URLs, including the Luke URL * * @return void */ protected function _initUrls() { parent::_initUrls(); $this->_lukeUrl = $this->_constructUrl(self::LUKE_SERVLET, array('numTerms' => '0', 'wt' => self::SOLR_WRITER)); $this->_pluginsUrl = $this->_constructUrl(self::PLUGINS_SERVLET, array('wt' => self::SOLR_WRITER)); $this->_schemaUrl = $this->_constructUrl(self::SCHEMA_SERVLET); $managedLanguage = $this->getManagedLanguage(); $this->_synonymsUrl = $this->_constructUrl(self::SYNONYMS_SERVLET) . $managedLanguage; }
/** * Initiate URLs so they use the correct protocol. */ protected function _initUrls() { wfProfileIn('BS::' . __METHOD__); $this->_morelikethisUrl = $this->_constructUrl(BsConfig::get('MW::ExtendedSearch::SolrCore') . self::MORELIKETHIS_SERVLET); $this->_spellcheckUrl = $this->_constructUrl(BsConfig::get('MW::ExtendedSearch::SolrCore') . self::SPELLCHECK_SERVLET); parent::_initUrls(); if ($this->bUseDifferentProtocolThanHttp) { $this->_updateUrl = str_ireplace('http://', $this->sProtocol . '://', $this->_updateUrl); $this->_searchUrl = str_ireplace('http://', $this->sProtocol . '://', $this->_searchUrl); $this->_threadsUrl = str_ireplace('http://', $this->sProtocol . '://', $this->_threadsUrl); $this->_spellcheckUrl = str_ireplace('http://', $this->sProtocol . '://', $this->_spellcheckUrl); $this->_morelikethisUrl = str_ireplace('http://', $this->sProtocol . '://', $this->_morelikethisUrl); } wfProfileOut('BS::' . __METHOD__); }
/** * Construct the Full URLs for the three servlets we reference * * @see Apache_Solr_Service::_initUrls() */ protected function _initUrls() { parent::_initUrls(); $this->_lukeUrl = $this->_constructUrl(self::LUKE_SERVLET, array('numTerms' => '0', 'wt' => self::SOLR_WRITER)); }
protected function _initUrls() { parent::_initUrls(); $this->_suggestionsUrl = $this->_constructUrl(self::SUGGESTIONS_SERVLET); }
/** * initializes various URLs, including the Luke URL * * @return void */ protected function _initUrls() { parent::_initUrls(); $this->_lukeUrl = $this->_constructUrl(self::LUKE_SERVLET, array('numTerms' => '0', 'wt' => self::SOLR_WRITER)); $this->_pluginsUrl = $this->_constructUrl(self::PLUGINS_SERVLET, array('wt' => self::SOLR_WRITER)); $pathElements = explode('/', trim($this->_path, '/')); $this->_coresUrl = $this->_scheme . '://' . $this->_host . ':' . $this->_port . '/' . $pathElements[0] . '/' . self::CORES_SERVLET; $this->_schemaUrl = $this->_constructUrl(self::SCHEMA_SERVLET); $managedLanguage = $this->getManagedLanguage(); $this->_synonymsUrl = $this->_constructUrl(self::SYNONYMS_SERVLET) . $managedLanguage; $this->_stopWordsUrl = $this->_constructUrl(self::STOPWORDS_SERVLET) . $managedLanguage; }
/** * initializes various URLs, including the Luke URL * * @return void */ protected function _initUrls() { parent::_initUrls(); $this->_lukeUrl = $this->_constructUrl(self::LUKE_SERVLET, array('numTerms' => '0', 'wt' => self::SOLR_WRITER)); $this->_systemUrl = $this->_constructUrl(self::SYSTEM_SERVLET, array('wt' => self::SOLR_WRITER)); $this->_pluginsUrl = $this->_constructUrl(self::PLUGINS_SERVLET, array('wt' => self::SOLR_WRITER)); }