This repository contains the code examples from the book Elasticsearch in Action. I basically refactored the code examples to work with best practices for elasticsearch version 6 .
Because it's nice to have some sample data to run various searches from the book's listings. Throughout most chapters, there's an example use-case of running a get-together site, where you have people organizing themselves into groups and hosting events. Code samples provide you with some data and a script to index that data.
# clone the repository
git clone https://github.com/dakrone/elasticsearch-in-action.git
# OR, if using Elasticsearch 5.0 , use the 5.x branch
git clone https://github.com/dakrone/elasticsearch-in-action.git -b 5.x
# index the sample data
elasticsearch-in-action/populate.sh
You have feedback? We'd be glad to hear it from you on the book's forum. You can also send pull requests or open issues on this repository.
Happy reading and Elasticsearch-ing!