final example code
Merge branch 'master' of https://github.com/waldemarnt/elasticsearch-php-example