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?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire