ElasticSearch code samples from the book