Only use ElasticSearch with uri on prod env.