Elasticsearch Version Support
This extension is designed to support Elasticsearch version 5.0 and above. It has been tested with Elasticsearch 5.x, 6.x, and 7.x branches.
Inline Scripting (Painless)
Some features, such as the yii\elasticsearch\ActiveRecord::updateAllCounters() method, use inline scripts written in painless. These scripts are executed within a sandbox by Elasticsearch.
In most modern Elasticsearch versions, inline scripting is enabled by default. However, if you are using very old versions (such as Elasticsearch 5.0), you may need to manually enable inline scripting in your Elasticsearch configuration to use these features. Refer to the Elasticsearch documentation for details.