Change the way es_index_prefix is set.