diff --git a/Classes/Service/IndexService.php b/Classes/Service/IndexService.php index 8e5ab50..2337b5b 100644 --- a/Classes/Service/IndexService.php +++ b/Classes/Service/IndexService.php @@ -46,7 +46,7 @@ public function add(Document $document) try { if ($this->client->isHealthy()) { $index = $this->client->index($this->index); - $index->addDocuments($document->toArray()); + $index->addDocuments($document->toArray(), 'id'); } else { $this->logger->warning('MeiliSearch is not healthy.'); }