This repository contains the code examples from the book Elasticsearch in Action.
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.x, use the 5.x branch. Similarly, for 6.x you'd use the 6.x branch:
git clone https://github.com/dakrone/elasticsearch-in-action.git -b 6.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!