Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
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();