有没有一种方法可以将搜索结果中的特定项目分组 [英] Is there a way to group specific item in the search results

查看:76
本文介绍了有没有一种方法可以将搜索结果中的特定项目分组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以对以特定顺序相同的相关搜索结果项进行分组.

I was wondering if it is possible to group related search results items that are the same in a particular order.

例如,将搜索结果组织如下:

for example have the search results organized like this:

第一份报告(rdl.twb,xlsx)

1st Reports (rdl.twb, xlsx)

第二个文档(excel,word,PowerPoint)

2nd Docs (excel, word, powerpoint)

第三个视频

第4张图片

因此,如果我键入搜索项,结果将按该顺序返回.这可能吗?

so if I typed a search item, the results would come back in that order. Is this possible?

这几乎就像一个排序顺序,其中的项目按上述顺序排列.

it is almost like a sort order with the items in the order above.

推荐答案

嗨cowboy2066,

Hi cowboy2066,

要在SharePoint中对搜索结果进行分组,建议您编写JavaScript来自定义搜索结果项显示模板.

To group search results in SharePoint, I recommend you writing JavaScript to customize search result items display template.

以下文章供您参考:

如何通过JavaScript为搜索结果WebPart定义自定义组显示模板(GroupTemplateId):

How to Define a Custom Group Display Template (GroupTemplateId) for the Search Results WebPart via JavaScript:

https://www.eliostruyf.com/how-to-define-a-custom-group-display-template-for-the-search-results-webpart-via-javascript/

在SharePoint 2013中创建自定义搜索结果:

Creating customized search results in SharePoint 2013:

http://www.abelsolutions.com/creating-customized-search-共享结果-2013/

在Sharepoint 2013的显示模板中枚举javascript上下文对象的所有属性

Enumerate all properties of javascript context object in display templates in Sharepoint 2013

http://sadomovalex.blogspot.sg/2013/06/enumerate -all-properties-of-javascript.html

最诚挚的问候,

Grace Wang

Grace Wang


这篇关于有没有一种方法可以将搜索结果中的特定项目分组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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