basic example with php library to elasticsearch client.