Elastic Search Middle layer based on Event Machine Ruby