Commit f23ba6cb by Carsten Brandt

explicitly set the language for elasticsearch script

groovy is now always on in ES 1.3.0 fixes #5662
parent 0afd13f0
......@@ -546,7 +546,8 @@ class ActiveRecord extends BaseActiveRecord
}
$data = Json::encode([
"script" => $script,
"params" => $counters
"params" => $counters,
"lang" => "groovy",
]);
$bulk .= $action . "\n" . $data . "\n";
}
......
......@@ -4,7 +4,7 @@ Yii Framework 2 elasticsearch extension Change Log
2.0.1 under development
-----------------------
- no changes in this release.
- Bug #5662: Elasticsearch AR updateCounters() now uses explicitly `groovy` script for updating making it compatible with ES >1.3.0 (cebe)
2.0.0 October 12, 2014
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment