elasticsearch implementation and heroku testing