I have indexed my content. I have a field that is an int (my_custom_field below) and would like to sort on it. I'm getting the error below:
Parse Failure [No mapping found for [ContentApiModel.my_custom_field] in order to sort on]];
The API URI looks like this:
Well, I changed the query to this. I no longer get a nasty 500 error. It returns results, but they aren't sorted as expected.
This is what I see in my log:
2020-12-18 11:27:12,932  ERROR EPiServer.ContentApi.Search.Internal.FilterHelper: Fail to build lamda expressionSystem.ArgumentException: Property 'my_custom_field' 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)
How does tour query look like (C# code)?
Is Episerver Find - sorry Search & Navigation - hosted on-prem, og are you using the normal cloud hosted index?