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