I am trying to implement Full Text Search in a SQL View which is supporting Multi Tenancy Implementation using TenantID Filter to retrieve data from the underlying table.
Eg: Table Name - BOOKS which is having a TENANT_ID Column View Name - VUE_BOOKS which makes use of SUSERSID() function to filter the TENANT_ID column from table.
In order to set up Full Text Search that view must have Full Text Index. To set up Full Text Index that view must be an Indexed view.
But unfortunately I am not able to create Index for the view because of non deterministic value from the inbuilt function SUSERSID().
How will I implement Multitenancy and Full Text Search in this scenario without exposing Table Name ?
Any Suggestions ?