Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
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?