Adds setting for Solr timeout
This commit is contained in:
parent
73795299a7
commit
6e694e23e3
|
@ -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']
|
||||
)
|
||||
)
|
||||
);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 <strong>%s</strong>.</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 <strong>%s</strong> zurück.</label>
|
||||
<label index="solr.notConnected">Verbindung fehlgeschlagen!</label>
|
||||
|
|
Loading…
Reference in New Issue