如何更好地呈现XML搜索命中 [英] How to present XML search hits better
问题描述
我的基本搜索中心网站集中有一个Web内容源,可对包含一堆HTML和XML文件的网页进行爬网.
I have a Web Content Source in my Basic Search Center Site Collection that crawls a a webpage that contains a bunch of HTML and XML files.
我想调整搜索结果的显示方式.我需要XML文档中的标签,而不是XML文件名作为标题.我该怎么办?
I want to adjust how the search hits are presented. Instead of the XML file name as the title, I want a tag from the XML document. How can I do this?
结果类型/内容类型和显示项?
Result Types/Content Types and Display Items?
推荐答案
您必须修改显示模板
You have to modify your display templates
https://support.office.com/zh-cn/article/Change-how-search-results-look-by-using-result-types-and-display-templates-0fc83eeb-28c8-4f65-afe3 -0ee515296a9d?ui = zh-CN& rs = zh-CN& ad = US& fromAR = 1
https://support.office.com/en-us/article/Change-how-search-results-look-by-using-result-types-and-display-templates-0fc83eeb-28c8-4f65-afe3-0ee515296a9d?ui=en-US&rs=en-US&ad=US&fromAR=1
这篇关于如何更好地呈现XML搜索命中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!