Skip to content

Commit

Permalink
set core to null to select the default connection
Browse files Browse the repository at this point in the history
  • Loading branch information
floriansemm committed Nov 14, 2016
1 parent 9c5be35 commit 3fd18f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Solr.php
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,10 @@ public function synchronizeIndex($entities)

foreach ($allDocuments as $core => $documents) {
$buffer->addDocuments($documents);

if ($core == '') {
$core = null;
}
$buffer->setEndpoint($core);

$buffer->commit();
Expand Down

0 comments on commit 3fd18f0

Please sign in to comment.