World is now on Opti ID! Learn more
AI OnAI Off
World is now on Opti ID! 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();