Update API and elastic search