/**
  * @param BaseElasticsearchEntity $entity
  * @param bool $refresh
  * @param bool $forceVersion
  *
  * @throws \Exception
  */
 public function save($entity, $refresh = false, $forceVersion = false)
 {
     $this->_sm->persist($entity);
     $this->_sm->flush($entity, $refresh, $forceVersion);
 }