Hi,
I have a managed property (e.g. ManagedProp1) that has been set to be Searchable, Queryable, Retrievable & Refinable. When I use this property in the Refinement Panel webpart it shows me the values to be selected for refining.
Now, when I use the same property (ManagedProp1) in a display template, it does NOT show any value. It returns empty/null. I have added the property to the ManagedPropertyMapping section of the display template and I can debug the display template, that's where I see the value to be null for the property. I use the following line to retrieve the value in the display template.
var varmManagedProp1 = $getItemValue(ctx, "ManagedProp1");
In the past I have used managed properties and have shown values in the display template and they still continue to show values, however this is strange.
I am surprised, how this is possible? Anyone faced similar issue, please let me know?
Regards,
Deven