Hi,
Any one help me how can match ContentRefrence from Ilist(ContentRefernce ) property using build filder
My code is mentioned below:
private FilterBuilder GetMarketTagFilter(ContentReference contentTypeTags)
{ var filterBuilder = SearchClient.Instance.BuildFilter(); if (contentTypeTags != null) { filterBuilder = filterBuilder.Or(x => x.MarketVisible.(contentTypeTags.ID)); } return filterBuilder; }
In the above code " MarketVisible" is --Ilist(ContentRefernce ) property
Thanks
Sourav
Hi!
No need to use the build filter functionality in this case. You coud simply use MatchContained:
.Filter(x => x.MarketVisible.MatchContained(p => p.ID, contentTypeTags.ID))
Hi Per,
Thanks a lot for your help and support.
Hi,
Any one help me how can match ContentRefrence from Ilist(ContentRefernce ) property using build filder
My code is mentioned below:
private FilterBuilder GetMarketTagFilter(ContentReference contentTypeTags)
{();
var filterBuilder = SearchClient.Instance.BuildFilter
if (contentTypeTags != null)
{
filterBuilder = filterBuilder.Or(x => x.MarketVisible.(contentTypeTags.ID));
}
return filterBuilder;
}
In the above code " MarketVisible" is --Ilist(ContentRefernce ) property
Thanks
Sourav