public function refreshDoc($model)
    {
        $this->config['client']->index(
            [
                'id' => $model->getEsId(),
                'index' => $this->getIndex()->getName(),
                'type' => $this->getType(),
                'body' => $model->transform(true)
            ]
        );
    }