Added option script.disable_dynamic in the elasticsearch.yml template. Set default to true.