如何创建内容搜索Web部件以按托管属性进行分组 [英] How can I create a Content Search web part to group by a managed property

查看:66
本文介绍了如何创建内容搜索Web部件以按托管属性进行分组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我花了不少时间在这上面。我理解如何创建自己的模板,我需要为'Control'和'item'创建一个模板但是'www'上没有任何内容可以为我提供我需要添加到这些文件的代码或者在哪里
添加它们以显示带有SharePoint列表的"分组效果"的搜索结果。我在google上看到了相当多的帖子,问了同样的问题,但是没有人似乎有答案?

I have spent endless hours on this. I understand how I can create my own templates and that I need to create one for 'Control' and also for 'item' but there is nothing out there on 'the www' that gives me the code I need to add to these files or where to add them in order to display the search results with a 'grouping effect' which you get with a SharePoint list. I have seen a considerable amount of posts on google asking the same question but no-one seems to have the answer?

我在GitHub上发现了一个承诺这个但却只是错误的模板没有论坛可以质疑为什么。

I found a template on GitHub that promised this but it just errors and there is no forum to question why.

任何帮助表示感谢!您曾经能够在旧的搜索结果网络部件上执行此OOTB,但他们现在在SP 2016上没有OOTB选项: - (

Any help appreciated! You used to be able to do this OOTB on the old Search Results web part but they have no OOTB options now on SP 2016 :-(

谢谢,Julie

推荐答案

嗨朱莉,

尝试按照以下文章创建自定义显示模板,检查是否可供您参考:

Try to follow the article below to create a custom display template, check if it’s feasible for your reference:

使用CSWP的显示模板对搜索结果进行分组

Grouping search results with display templates for the CSWP

https://www.eliostruyf.com/grouping-search-results-with-display-templates -for-the-cswp /

祝你好运,

Grace Wang

Grace Wang


这篇关于如何创建内容搜索Web部件以按托管属性进行分组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆