make elasticsearch works by mysql