Skip to content

Commit

Permalink
Use getSearchReference method instead of reference
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean authored Oct 3, 2023
1 parent a9c1a0c commit 5d90bdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MeiliSearch/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 5d90bdc

Please sign in to comment.