public function refreshIndex(IndexInterface $index) { try { $this->client->indices()->refresh(['index' => $index->getName()]); } catch (\Exception $e) { $this->logger->error($e->getMessage()); } return $this; }