I'm trying to search on a property of a nested object in Find. I need to build this up dynamically as we are searching for multiple values at once. I was looking at something similar to the below, but I see the OrFilter extension method does not support nested expressions.
foreach (var mid in midsList)
{
if (!string.IsNullOrWhiteSpace(mid))
{
query.OrFilter(x => x.ProductVariantData(), v => v.Code.Match(mid.Trim()));
}
}
Is there another approach to this anyone can think of?
Resolved, found the answer here https://world.optimizely.com/documentation/Items/Developers-Guide/EPiServer-Find/11/DotNET-Client-API/Searching/nested-queries/
I'm trying to search on a property of a nested object in Find. I need to build this up dynamically as we are searching for multiple values at once. I was looking at something similar to the below, but I see the OrFilter extension method does not support nested expressions.
Is there another approach to this anyone can think of?
Many thanks,
Dave