yii\elasticsearch\Command::updateSettings PHP Method

updateSettings() public method

Note that update analyzers required to [[close()]] the index first and [[open()]] it after the changes are made, use Command::updateAnalyzers for it.
See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-update-settings.html
Since: 2.0.4
public updateSettings ( string $index, string | array $setting, array $options = [] ) : mixed
$index string
$setting string | array
$options array URL options
return mixed
    public function updateSettings($index, $setting, $options = [])
    {
        $body = $setting !== null ? is_string($setting) ? $setting : Json::encode($setting) : null;
        return $this->db->put([$index, '_settings'], $options, $body);
    }