我想知道是否可以对以特定顺序相同的相关搜索结果项进行分组.
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:
www.eliostruyf/how-to-define-a-custom-group-display-template-for-the-search-results-webpart-via-javascript/
在SharePoint 2013中创建自定义搜索结果:
Creating customized search results in SharePoint 2013:
www.abelsolutions/creating-customized-search-共享结果-2013/
在Sharepoint 2013的显示模板中枚举javascript上下文对象的所有属性
Enumerate all properties of javascript context object in display templates in Sharepoint 2013
sadomovalex.blogspot.sg/2013/06/enumerate -all-properties-of-javascript.html
最诚挚的问候,
Grace Wang
Grace Wang
更多推荐
有没有一种方法可以将搜索结果中的特定项目分组
发布评论