Skip to content

Commit

Permalink
Remove arElasticSearchIndexDecorator.
Browse files Browse the repository at this point in the history
- 'inline' scripts are deprecated, changed to 'source'
  • Loading branch information
melaniekung committed Oct 3, 2024
1 parent 173950b commit 9dab063
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 86 deletions.
2 changes: 1 addition & 1 deletion lib/job/arUpdatePublicationStatusJob.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function runJob($parameters)

$queryScript = \Elastica\Script\AbstractScript::create([
'script' => [
'inline' => 'ctx._source.publicationStatusId = '.$publicationStatus->id,
'source' => 'ctx._source.publicationStatusId = '.$publicationStatus->id,
'lang' => 'painless',
],
]);
Expand Down
2 changes: 1 addition & 1 deletion lib/task/tools/updatePublicationStatusTask.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ protected function updatePublicationStatusDescendants($resource, $publicationSta

$queryScript = \Elastica\Script\AbstractScript::create([
'script' => [
'inline' => 'ctx._source.publicationStatusId = '.$publicationStatus->id,
'source' => 'ctx._source.publicationStatusId = '.$publicationStatus->id,
'lang' => 'painless',
],
]);
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function __construct(array $options = [])

// TODO: arElasticSearchIndexDecorator can be removed when Elastica >= 6.x. It is present to
// provide Elastica/Index::updateByQuery().
$this->index = new arElasticSearchIndexDecorator($this->client->getIndex($this->config['index']['name']));
$this->index = $this->client->getIndex($this->config['index']['name']);

// Load batch mode configuration
$this->batchMode = true === $this->config['batch_mode'];
Expand Down

0 comments on commit 9dab063

Please sign in to comment.