diff --git a/src/MeiliSearch/Index.php b/src/MeiliSearch/Index.php index 6988407..a278082 100644 --- a/src/MeiliSearch/Index.php +++ b/src/MeiliSearch/Index.php @@ -40,7 +40,7 @@ public function insert($document) public function delete($document) { - $this->getIndex()->deleteDocument($this->getSafeDocmentID($document->reference())); + $this->getIndex()->deleteDocument($this->getSafeDocmentID($document->getSearchReference())); } public function exists()