如何更好地呈现XML搜索命中

问题描述:

我的基本搜索中心网站集中有一个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