This PHP class is to create and insert documents to an elasticsearch index, search based on a query and highlight matched results.