空的自定义显示模板的托管属性 [英] Null managed property for custom display template
问题描述
我在搜索显示模板中的托管属性为空.我正在搜索结果Web部件中通过结果类型使用显示模板.
I am getting null for a managed property in search display template. I am using the display template via result type in search results web part.
这些是我检查过的东西:
These are the things I checked:
列是否在搜索架构中映射? PNumberOWSTEXT-检查
执行了完全爬网? -检查
是在< mso:ManagedPropertyMapping>中吗?在显示模板中标记? 'PNumberOWSTEXT':'PNumberOWSTEXT'-检查
是在< div>中吗?标签? _#= ctx.CurrentItem.PNumberOWSTEXT =#_-检查
它映射在相应的.js文件中吗? -检查
是否使用< div>映射?标签在Item_CommonItem_Body.html中? -检查
更新了结果类型中的同步问题? -检查
修改后是否执行了完全爬网? -检查
Is column mapped in Search Schema? PNumberOWSTEXT - Check
Performed full crawl? - Check
Is it in <mso:ManagedPropertyMapping> tag in display template? 'PNumberOWSTEXT':'PNumberOWSTEXT'- Check
Is it in <div> tag? _#= ctx.CurrentItem.PNumberOWSTEXT =#_ - Check
Is it mapped in corresponding .js file? - Check
Is it mapped with <div> tag in Item_CommonItem_Body.html? - Check
Updated sync issue in Result Types? - Check
Performed full crawl after modifications? - Check
我还尝试使用单个模板显示项目"选择,但没有运气.我已使用搜索查询工具"进行了验证REST查询不会返回任何托管属性(该工具使用REST API)
I also tried using "single template to display items" option but no luck. I verified with "search query tool" and none of managed properties are being returned by REST queries (tool uses REST API)
有指针吗?
谢谢!
推荐答案
可以请尝试以下
Can you please try the below
https://social.technet.microsoft.com/Forums/office/zh-CN/29f05f3b-d9d5-4b1d-9881-68d69d49c262/managed-properties-in-display-templates-giving-null-results?forum = sharepointsearch
https://social.technet.microsoft.com/Forums/office/en-US/29f05f3b-d9d5-4b1d-9881-68d69d49c262/managed-properties-in-display-templates-giving-null-results?forum=sharepointsearch
这篇关于空的自定义显示模板的托管属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!