Hellow,
I'm searching how to restrict the results of search API basead on some permission.
My business requirements is:
Document A belongs to Entity X
Document B belongs to Entity Y
Document C belongs to Entity X
So I need to apply a restriction on search to show only documents of Entity X.
How I can implement this?