How to make queries to elasticsearch from client side of kibana plugin