I'm trying to use method InField with a string argument, but it doesn't seem to work.
.InField(i => i.FullName)
.GetPagesResult(); // returns results
.GetPagesResult(); // doesn't return any result
What can be the problem?
I've found the solution. The quick answer is:
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);