With my automated script its quite easy. All you need to do is run this script:
curl -O http://aekstrom.me/install_elasticsearch.sh; sh install_elasticsearch.sh
Please note that your computer needs Homebrew installed.
After installation is completed you can run the ElasticSearch as a service with
brew services start email@example.com Please note this is not the stable HEAD, to install that run
brew install elasticsearch
This helpful text is viewed after the installation is completed. To use this for example with WordPress you need to install the plugin ElasticPress.