jeudi 1 mars 2018

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 Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2FIDhD1
via IFTTT

Aucun commentaire:

Enregistrer un commentaire