I have a search code as shown below that works fine. On the page where I show these result I have another content reference field that am displaying. I need to see if the search result contains the content reference item on the page and if so then remove it from the results.
Typically I can do a filter but the problem is that content reference can also be null so am not sure how to incorporate that null check.
foreach (var category in secondaryCategoryPages.Take(WebConstants.MaxMultiSearch))
{
multisearch = multisearch.Search<ContentArticlePage, SearchHitResult>(s => s
.FilterForVisitor()
.Skip((page - 1) * pageSize)
.Take(pageSize)
.OrderByDescending(x => x.ArticleDate)
.Select(x => ConvertFromIContent(x.ContentLink, category))
.StaticallyCacheFor(new TimeSpan(0, 5, 0)));
}