Scout Algolia doesn’t delete when objectId is not Primary key
When I import my model to Algolia I change the ObjectId to the value of another field. But it seems when I call delete() on my object it doesn’t remove it from Algolia. To be more clear here is an example:
User{
id,
email
name
}
Algolia User {objectId :email,name}
is there a way to solve this issue? Does scout have a function to overwrite the original delete function similiar to toSearchableArray?
from Laravel Questions and Answers https://laravelquestions.com/laravel/scout-algolia-doesnt-delete-when-objectid-is-not-primary-key/
via Lzo Media
No comments:
Post a Comment