use elasticsearch new config.