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.
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've found the solution. The quick answer is:
return client.Search<ProductPage>()
.For(searchQuery)
.InField("FullName$$string.en")
.GetPagesResult();
I've studied sources of InField method. There is a call of FieldNameConvention method inside. So, I've found the correct format calling this method:
Expression<Func<ProductPage, string>> expression = page => page.FullName; var fieldName = client.Conventions.FieldNameConvention.GetFieldNameForSearch((Expression)expression, Language.English);
Hi!
I'm trying to use method InField with a string argument, but it doesn't seem to work.
What can be the problem?