File tree 2 files changed +8
-3
lines changed
lib/Search/Elasticsearch/Client
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1638,7 +1638,10 @@ The C<put_script()> method is used to store a script in the cluster state. For i
1638
1638
lang => 'painless',
1639
1639
id => 'hello_world',
1640
1640
body => {
1641
- script => q(return "hello world");
1641
+ script => {
1642
+ lang => 'painless',
1643
+ source => q(return "hello world")
1644
+ }
1642
1645
}
1643
1646
);
1644
1647
Original file line number Diff line number Diff line change @@ -1463,8 +1463,10 @@ The C<put_script()> method is used to store a script in the cluster state. For i
1463
1463
$result = $e->put_scripts(
1464
1464
id => 'hello_world',
1465
1465
body => {
1466
- lang => 'painless',
1467
- source => q(return "hello world");
1466
+ script => {
1467
+ lang => 'painless',
1468
+ source => q(return "hello world")
1469
+ }
1468
1470
}
1469
1471
);
1470
1472
You can’t perform that action at this time.
0 commit comments