Scout Algolia doesn’t delete when objectId is not Primary key - development

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

Comments

Popular posts from this blog

ng-show doesn’t work correct with value boolean

ng-include of inline SVG does not display gradient except in Chrome

Using PHP and MySQL data to generate PDF letters like in MS Word mailmerge functionality - development