I'm currently trying to display a custom page property in the search result display template (Item_CommonItem_Body) of a SharePoint Online Classic site.
I have created and added the managed property to the ManagedPropertyMapping element as follows:
Item_CommonItem_Body.html:
<mso:ManagedPropertyMapping msdt:dt="string">'Path':'Path','Description':'Description','EditorOWSUSER':'EditorOWSUSER','LastModifiedTime':'LastModifiedTime','CollapsingStatus':'CollapsingStatus','DocId':'DocId','HitHighlightedSummary':'HitHighlightedSummary','owstaxIdBHFacility':'owstaxIdBHFacility','HitHighlightedProperties':'HitHighlightedProperties','FileExtension':'FileExtension','ViewsLifeTime':'ViewsLifeTime','ParentLink':'ParentLink','FileType':'FileType','IsContainer':'IsContainer','SecondaryFileExtension':'SecondaryFileExtension','DisplayAuthor':'DisplayAuthor','metadatafacetinfo':'metadatafacetinfo','ows_MetadataFacetInfo':'ows_MetadataFacetInfo'</mso:ManagedPropertyMapping>
Search Schema Managed Property:
I see this property appearing with the SharePoint Search Query tool:
but when I check the display template rendering of the same search result the property is not found (screenshot above is showing the internal property name which we have also tried referencing in the display template with same behavior):
Anyone have any ideas as to what we could be missing here? All the articles and posts I've checked so far haven't worked. This property in question is a managed metadata term in case that makes a difference.