Update API to use elastic search.