我正在尝试搜索服务应用程序级别的结果来源(即Central admin中)。当我创建一个新源时,我可以单击链接以启动查询构建器,但搜索结果预览面板给出以下错误:

The Search display templates are not present on this site collection. To add them, you
need to activate the "Search Server Web Parts and Templates" feature on the Site
Collection Features page.

Correlation ID: 94b6249c-d255-602d-b77b-757efe4b3071

Display Error: The display template had an error. You can correct it by fixing the 
template or by changing the display template used in either the Web Part properties or 
Result Types.

Template '~sitecollection/_catalogs/masterpage/Display 
Templates/System/Control_QueryBuilderPreview.js' not found or has syntax errors. 
(LoadTemplate: )
.

这是Central Admin,当我进入网站设置时,没有“网站集合要素”链接,并且在“站点功能”中没有“搜索服务器Web部件和模板”功能。

任何想法如何让查询生成器再次工作?

有帮助吗?

解决方案

尝试...以管理员身份打开SharePoint 2013 Management shell并运行以下命令:

Enable-SPFeature SearchWebParts -url http://<central admin url>
.

其他提示

我必须为web应用程序启用它。当我为加利福尼亚州这样做时,我得到了同样的错误。

Enable-SPFeature SearchWebParts -url http://sales.portal.net适用于我。

许可以下: CC-BY-SA归因
scroll top