Try our conversational search powered by Generative AI!

Content Search API - Filter buy ContentReference/ExpandedValue



We are trying to search by content type TeaserBlock and it's property VisitorGroupBlock's (which is of type ContentReference) expandedValue (block of type VisitorGroupBlock).

An example query:

/api/episerver/v2.0/search/content/?filter=ContentType/any(t:t eq 'TeaserBlock') and visitorGroupBlock/expandedValue/recommendationCategories/value eq '88180247' 

This however leads to an error and no results:

ERROR EPiServer.ContentApi.Search.Internal.FilterHelper: Fail to build lamda expression
System.ArgumentException: Property 'visitorGroupBlock' is not defined for type 'EPiServer.ContentApi.Core.Serialization.Models.ContentApiModel'
at System.Linq.Expressions.Expression.Property(Expression expression, Type type, String propertyName)
at EPiServer.ContentApi.Search.Internal.FilterHelper.GetPropertyNameAsLambdaExpression(Type type, String dotNotation)

Can someone point out what we are doing wrong? :)

Edited, Aug 11, 2020 6:13

Did you ever find a solution for this?

Nov 26, 2020 10:10
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.