Search results has no value for a custom site column.
Ok, so I have a lookup column created as a site column in the root of my site collection. I found the field in crawled properties. NOTE: I am limited to Site Collection Administrator permissions.
Crawled Property Name: ows_solDsDistricts
I added a Managed Property and mapped the ows_solDsDistricts.
According to what I saw on Channel 9, I edited the display template in the masterpage library and added the name of the managed property to the list of properties.
In the display template, I followed the pattern for the other properties. Here is the entry for the "Created By" column:
Here is my custom property (using the name of my custom managed property):
I added some vars in the template for both of the managed properties above.
var varDistrictName = ctx.CurrentItem.customSolDsDistricts; var varDisplayAuthor = ctx.CurrentItem.DisplayAuthor;
Then added the references in the HTML of the template.
<div>District: _#=varDistrictName=#_</div> <div>Created By: _#=varDisplayAuthor=#_</div>
When I search, the results return the varDisplayAuthor values but the varDistrictName is blank. It has been over 24hrs since I created the managed property.
I must be missing something. Yes, I have verified that all items in the search results do have values in the solDsDistricts site column.