Browse Source

Adds setting for Solr timeout

pull/298/head
Frank Ulrich Weber 3 years ago
parent
commit
6e694e23e3
  1. 6
      common/class.tx_dlf_solr.php
  2. 3
      ext_conf_template.txt
  3. 2
      locallang.xml

6
common/class.tx_dlf_solr.php

@ -276,6 +276,9 @@ class tx_dlf_solr {
// Append core name to path.
$solrInfo['path'] = trim($conf['solrPath'], '/');
// Timeout
$solrInfo['timeout'] = $conf['solrTimeout'];
return $solrInfo;
}
@ -752,7 +755,8 @@ class tx_dlf_solr {
'path' => '/'.$solrInfo['path'].'/',
'core' => $core,
'username' => $solrInfo['username'],
'password' => $solrInfo['password']
'password' => $solrInfo['password'],
'timeout' => $solrInfo['timeout']
)
)
);

3
ext_conf_template.txt

@ -54,3 +54,6 @@ solrUser =
# cat=Solr; type=string; label=LLL:EXT:dlf/locallang.xml:config.solrPass
solrPass =
# cat=Solr; type=string; label=LLL:EXT:dlf/locallang.xml:config.solrTimeout
solrTimeout = 10

2
locallang.xml

@ -180,6 +180,7 @@
<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>
<label index="config.solrTimeout">Solr Server Timeout: (default is "10")</label>
<label index="solr.connected">Connection established!</label>
<label index="solr.status">The status code returned by Apache Solr is &lt;strong&gt;%s&lt;/strong&gt;.</label>
<label index="solr.notConnected">Connection failed!</label>
@ -392,6 +393,7 @@
<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>
<label index="config.solrTimeout">Solr Server Timeout: (Standard ist "10")</label>
<label index="solr.connected">Verbindung hergestellt!</label>
<label index="solr.status">Apache Solr gibt den Statuscode &lt;strong&gt;%s&lt;/strong&gt; zurück.</label>
<label index="solr.notConnected">Verbindung fehlgeschlagen!</label>

Loading…
Cancel
Save