diff --git a/src/Mellisearch/Index.php b/src/Mellisearch/Index.php index cef2888..4ff71fe 100644 --- a/src/Mellisearch/Index.php +++ b/src/Mellisearch/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()