有没有一种方法可以将搜索结果中的特定项目分组

编程入门 行业动态 更新时间:2024-10-23 17:35:36
本文介绍了有没有一种方法可以将搜索结果中的特定项目分组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

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

更多推荐

有没有一种方法可以将搜索结果中的特定项目分组

本文发布于:2023-11-28 13:18:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1642568.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:搜索结果   方法   项目

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!