Skip to content

Commit 72dcd80

Browse files
dfeyerdaniellienert
authored andcommitted
TASK: Inline is deprecated on Elastic 5
1 parent c9067bb commit 72dcd80

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Classes/Driver/Version5/IndexerDriver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function document(string $indexName, NodeInterface $node, ElasticSearchDo
4747
[
4848
'script' => [
4949
'lang' => 'painless',
50-
'inline' => '
50+
'source' => '
5151
HashMap fulltext = (ctx._source.containsKey("__fulltext") && ctx._source.__fulltext instanceof Map ? ctx._source.__fulltext : new HashMap());
5252
HashMap fulltextParts = (ctx._source.containsKey("__fulltextParts") && ctx._source.__fulltextParts instanceof Map ? ctx._source.__fulltextParts : new HashMap());
5353
ctx._source = params.newData;
@@ -116,7 +116,7 @@ public function fulltext(NodeInterface $node, array $fulltextIndexOfNode, $targe
116116
// first, update the __fulltextParts, then re-generate the __fulltext from all __fulltextParts
117117
'script' => [
118118
'lang' => 'painless',
119-
'inline' => '
119+
'source' => '
120120
ctx._source.__fulltext = new HashMap();
121121
if (!ctx._source.containsKey("__fulltextParts") || !(ctx._source.__fulltextParts instanceof Map)) {
122122
ctx._source.__fulltextParts = new HashMap();

0 commit comments

Comments
 (0)