class BookingDaoESImp extends BaseDaoESImp implements BookingDao {

    @Override
    public String createBooking(Booking booking) throws IOException
    {
        Map sourceMap = CommonUtil.convertToMap(booking);
        IndexRequest indexRequest = new IndexRequest(this.bookingsIndex, ES_TYPE);
        indexRequest.source(sourceMap);
        IndexResponse indexResponse = esclient.index(indexRequest, WriteRequest.RefreshPolicy.WAIT_UNTIL.getValue());
        return indexResponse.getId();
    }

    public  BookingDaoESImp();
    public  BookingDaoESImp(Properties properties);

}