Read chapter 1 and part of 6 of Elasticsearch The Definitive Guide