Skip to content

Commit

Permalink
[SOLARIUM61] update to Solarium 6.1.x API
Browse files Browse the repository at this point in the history
  • Loading branch information
nkissebe committed Nov 14, 2024
1 parent a44e73d commit 3b0100d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
6 changes: 5 additions & 1 deletion core/components/com_search/helpers/solr.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ public function __construct()
)
);

$this->connection = new Solarium\Client($solrConfig);
$adapter = new Solarium\Core\Client\Adapter\Curl();
$eventDispatcher = new Symfony\Component\EventDispatcher\EventDispatcher();

$this->connection = new Solarium\Client($adapter, $eventDispatcher, $options);

$this->query = $this->connection->createSelect();

return $this;
Expand Down
5 changes: 4 additions & 1 deletion core/libraries/Hubzero/Search/Adapters/SolrIndexAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ public function __construct($config)
);

// Create the client
$this->connection = new Solarium\Client($solrConfig);
$adapter = new Solarium\Core\Client\Adapter\Curl();
$eventDispatcher = new Symfony\Component\EventDispatcher\EventDispatcher();

$this->connection = new Solarium\Client($adapter, $eventDispatcher, $options);

// Create the Solr Query object
$this->query = $this->connection->createSelect();
Expand Down
5 changes: 4 additions & 1 deletion core/libraries/Hubzero/Search/Adapters/SolrQueryAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ public function __construct($config)
);

// Create the client
$this->connection = new Solarium\Client($solrConfig);
$adapter = new Solarium\Core\Client\Adapter\Curl();
$eventDispatcher = new Symfony\Component\EventDispatcher\EventDispatcher();

$this->connection = new Solarium\Client($adapter, $eventDispatcher, $options);

// Add plugin to accept bigger requests
$this->connection->getPlugin('postbigrequest');
Expand Down

0 comments on commit 3b0100d

Please sign in to comment.