Closed seifrached closed 6 months ago
Hello @seifrached
I'm not sure to understant what you do, and what you expect from Meilisearch, but I can say Meilisearch does not handle relation between documents and indexes. You have to update them on your side.
Also, for next time, you might have seen it when you opened the issue: opening an issue is not for support request.
I close this issue then. Feel free to ask to re-open if needed 😊
Framework: Laravel 8 with driver scout 9.5 Meilisearch v1.5.1
I'm creating a bookmark system for users by 3 models who User can make Many records Record Bookmarked by her owner and others Many Users Bookmark belongsTo Record and User
Models relationship
Record.php
User.php
Bookmark.php
Everything is okey when the owner softDelete his record, The record un-indexed from Meilisearch Bookmarks Model and From User->bookmarks, the problem isnothing change for all others users who bookmarks this record, Meaning it is touching only her owner.
I tried to iterate all user->bookmarks to update the relationship but this solution it takes a lot of time and effort, and frankly, I do not consider it reasonable if the number of Bookmarkers is large.
Record.php
I'm skeptical whether that's the problem is from my Relationship design or Laravel scout or Meilisearch ! When I check Laravel Eloquent works fine
Inside Meilisearch
please any suggest or solution.
Thanks