Skip to content

Commit

Permalink
Use getSearchReference method instead of reference (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean authored Oct 16, 2023
1 parent 1ad24e3 commit 268c212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mellisearch/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 268c212

Please sign in to comment.