Is there a way to get Coveo equivalent field name helper such as ToCoveoFieldName
in CoveoProcessParsedRestResponseArgs
pipeline code? Basically I am trying to see if a property of SearchResult
item is of certain value and based on it create a new property.
var db = NewStuff();
foreach (SearchResult result in response.Results)
{
result["isNew"] = "201612" == result.Raw["fyearandmonth11031"].ToString();
}
The field fyearandmonth11031
needs to be translated from Sitecore field (YearAndMonth
) to a Coveo field name.