Browse Source

Change default Solr port from 8180 to 8983

pull/298/head
Frank Ulrich Weber 3 years ago
parent
commit
9536e9f13a
  1. 2
      common/class.tx_dlf_solr.php
  2. 2
      ext_conf_template.txt
  3. 2
      hooks/class.tx_dlf_em.php
  4. 2
      hooks/class.tx_dlf_tcemain.php
  5. 4
      locallang.xml

2
common/class.tx_dlf_solr.php

@ -268,7 +268,7 @@ class tx_dlf_solr {
$solrInfo['password'] = $conf['solrPass'];
// Set port if not set.
$solrInfo['port'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange($conf['solrPort'], 1, 65535, 8180);
$solrInfo['port'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange($conf['solrPort'], 1, 65535, 8983);
// Append core name to path.
$solrInfo['path'] = trim($conf['solrPath'], '/');

2
ext_conf_template.txt

@ -41,7 +41,7 @@ solrConnect = 0
solrHost = localhost
# cat=Solr; type=int[0-65535]; label=LLL:EXT:dlf/locallang.xml:config.solrPort
solrPort = 8180
solrPort = 8983
# cat=Solr; type=string; label=LLL:EXT:dlf/locallang.xml:config.solrPath
solrPath = /solr/

2
hooks/class.tx_dlf_em.php

@ -59,7 +59,7 @@ class tx_dlf_em {
}
// Set port if not set.
$port = (!empty($this->conf['solrPort']) ? \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange($this->conf['solrPort'], 0, 65535, 8180) : 8180);
$port = (!empty($this->conf['solrPort']) ? \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange($this->conf['solrPort'], 0, 65535, 8983) : 8180);
// Trim path and append trailing slash.
$path = (!empty($this->conf['solrPath']) ? trim($this->conf['solrPath'], '/').'/' : '');

2
hooks/class.tx_dlf_tcemain.php

@ -126,7 +126,7 @@ class tx_dlf_tcemain {
}
// Set port if not set.
$port = (intval($conf['solrPort']) > 0 ? intval($conf['solrPort']) : 8180);
$port = (intval($conf['solrPort']) > 0 ? intval($conf['solrPort']) : 8983);
// Trim path and append trailing slash.
$path = (trim($conf['solrPath'], '/') ? trim($conf['solrPath'], '/').'/' : '');

4
locallang.xml

@ -175,7 +175,7 @@
<label index="config.fileGrpAudio">Audio fileGrp: @USE attribute value (default is "AUDIO")</label>
<label index="config.solrConnect">Solr Connection</label>
<label index="config.solrHost">Solr Server Host: (default is "localhost")</label>
<label index="config.solrPort">Solr Server Port: (default is "8180")</label>
<label index="config.solrPort">Solr Server Port: (default is "8983")</label>
<label index="config.solrPath">Solr Server Path: (default is "/solr/")</label>
<label index="config.solrUser">Solr Server User: (default is "")</label>
<label index="config.solrPass">Solr Server Password: (default is "")</label>
@ -384,7 +384,7 @@
<label index="config.fileGrpAudio">Audio fileGrp: @USE Attributwert der Audiodateien (Standard ist "AUDIO")</label>
<label index="config.solrConnect">Solr Verbindung</label>
<label index="config.solrHost">Solr Server Host: (Standard ist "localhost")</label>
<label index="config.solrPort">Solr Server Port: (Standard ist "8180")</label>
<label index="config.solrPort">Solr Server Port: (Standard ist "8983")</label>
<label index="config.solrPath">Solr Server Pfad: (Standard ist "/solr/")</label>
<label index="config.solrUser">Solr Server Benutzername: (Standard ist "")</label>
<label index="config.solrPass">Solr Server Kennwort: (Standard ist "")</label>

Loading…
Cancel
Save