Pass elasticsearch client instance to controller.