Erlang thrift interface to elastic_search