Adds setting for Solr timeout

This commit is contained in:
Frank Ulrich Weber 2018-11-15 16:20:10 +01:00
parent 73795299a7
commit 6e694e23e3
3 changed files with 10 additions and 1 deletions

View File

@ -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']
)
)
);

View File

@ -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

View File

@ -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>