search
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
I found the solution to this, it was due to not declaring the EnumerableField as a nested field.
SearchClient.Instance.Conventions.NestedConventions.ForInstancesOf<EntryContentBase>().Add(x => x.EnumerableField);
Hi,
I am trying to sort some objects by a nesten field, but cannot seem to get it working. I would like to sort all the results, (each containing the EnumerableField) based on the first element matching the z-lambda function of all the elements.
This is the nested sorting function I am using, which produces a "EPiServer.Find.ServiceException: 'The remote server returned an error: (400) Bad Request".
:
I have also tested sorting with .FirstOrDefault(...) but to no avail. As opposed to the previous approach, this one does not seem to do anything:
Is there something I am missing, or is this not possible?
The find-index objects is grouped in this way: