Managed Property not retruning value - although same property return value when used as a refiner

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

July 23rd, 2015 10:24am

Considering your Managed Property is returning value and tested properly using CQWP.

Is your Managed Property of type DateTime? If that is the case, you may want to use: "ctx.CurrentItem.ManagedProp1" instead

Free Windows Admin Tool Kit Click here and download it now
July 23rd, 2015 10:18pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics