design – Running a local instance of ElasticSearch on a REST API – is this possible?

So, I look at the elastic search API, and the way you interact with it, you run the ES binaries and make http requests to localhost (to insert, delete, whatever).


curl -XPOST https: // localhost / some_arg

My question is: I have a REST API on Heroku. I want this API to use elastic search. Can I simply back up the ES binaries as part of the server and run them as if I were running them on my local machine?

(The elastic search database is pre-populated with fixed data so there are no inserts / deletions.) The reason I use them is because it uses the search engine-like features of my existing data.)