A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
Stupid mistake by me, when moving FilterForVisitor() after all the other Filter() methods right before .GetResult() it works. (The code in the prev post wasn't the complete code)
When exploring the index I can see that the block is marked as deleted ("IsDeleted$$bool": true). But I can't figure out how to exclude it from the search result. Tried these:
var query = SearchClient.Instance.Search<StaffBlock>().FilterForVisitor().GetResult();
var query = SearchClient.Instance.Search<StaffBlock>().Filter(x => (x as IContent).IsDeleted.Match(false)).GetResult();