Skip to content

Commit

Permalink
[TASK] Sync with EXT:solr dev-main
Browse files Browse the repository at this point in the history
* Migrate to EXT:solr dev-main 2024.10.08 state

Fixes: #234
  • Loading branch information
dkd-kaehm committed Nov 11, 2024
1 parent 3efbdc2 commit 8847405
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Classes/Service/Tika/SolrCellService.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

use ApacheSolrForTypo3\Solr\ConnectionManager;
use ApacheSolrForTypo3\Solr\Exception\InvalidConnectionException;
use ApacheSolrForTypo3\Solr\System\Configuration\TypoScriptConfiguration;
use ApacheSolrForTypo3\Solr\System\Solr\SolrConnection;
use ApacheSolrForTypo3\Tika\Util;
use Solarium\QueryType\Extract\Query;
Expand Down Expand Up @@ -61,7 +62,11 @@ protected function initializeService(): void
$readEndpoint['password'] = Util::convertEnvVarStringToValue($this->configuration['solrPassword']);
}
$writeEndpoint = $readEndpoint;
$this->solrConnection = $connectionManager->getSolrConnectionForEndpoints($readEndpoint, $writeEndpoint);
$this->solrConnection = $connectionManager->getSolrConnectionForEndpoints(
$readEndpoint,
$writeEndpoint,
new TypoScriptConfiguration([]),
);
}

public function getSolrConnection(): SolrConnection
Expand All @@ -71,6 +76,8 @@ public function getSolrConnection(): SolrConnection

/**
* Retrieves a configuration value or a default value when not available.
*
* @noinspection PhpUnused
*/
protected function getConfigurationOrDefaultValue(string $key, mixed $defaultValue): mixed
{
Expand Down

0 comments on commit 8847405

Please sign in to comment.