Implemented elasticsearch and tire