Skip to content

Commit

Permalink
backport apache solr library update to work with newer solr versions
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesbochmann committed Feb 19, 2020
1 parent 2b88c9a commit 88d421c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions service/engine/class.tx_mksearch_service_engine_Solr.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,17 @@ public function __construct()
*/
public function setConnection($host, $port, $path, $force = true)
{
$this->index = new Apache_Solr_Service($host, $port, $path);
$this->index = new Apache_Solr_Service(
$host,
$port,
$path,
false,
$this->indexModel->isSolr4() ? new Apache_Solr_Compatibility_Solr4CompatibilityLayer() : false
);

// multivalue fields should always be an array
$this->index->setCollapseSingleValueArrays(false);

$this->index->setSolrVersion($this->indexModel->getSolrVersion());

//per default werden alle HTTP Aufrufe per file_get_contents erledigt.
//siehe Apache_Solr_Service::getHttpTransport()
//damit das funktioniert muss allerdings allow_url_fopen in den PHP
Expand Down

0 comments on commit 88d421c

Please sign in to comment.