Virtual Happy Hour is canceled this month (March) due to Good Friday.
Try our conversational search powered by Generative AI!
AI OnAI Off
Virtual Happy Hour is canceled this month (March) due to Good Friday.
I can se using reflector that PageTextIndexDB's function SearchPages does this at the end:
if (pageData.GetSecurityDescriptor().HasAccess(PrincipalInfo.CurrentPrincipal, AccessLevel.Read))
{
results.Add(pageData, pageRank);
}
Which makes the result return 0 since the user dont has read access even though we uses SearchDataSource.AsscessLevel=EPiServer.Security.AccessLevel.NoAccess
i've reported this as a bug.
here's the registered bug number
Bug #64874: Setting SearchDataSource AccessLevel does not work correctly
I need to get a list all page results without considering the user's role with the access rights. Is there any way to do it. Tired SearchDataSource.AsscessLevel=EPiServer.Security.AccessLevel.NoAccess, but it still filter out the pages that only allow memeber to access.