In SharePoint 2013 Foundation, I have created a custom display template for search and have created a couple of custom managed properties. Due to an absence of the Publishing Feature, I only have the JS files to edit for display item templates (No HTML). While everything is working properly except for the custom Managed properties. They are not showing up the values. If I tried to show default values like Title, Path, DocId etc, work properly. The only problem is with custom managed properties. Any thoughts?
Maybe this could help.
Go to Site settings --> Search Result Types. Notice that a Property Sync alert is displayed.
If you don't do this update, the newly added managed properties won't display in your search results.