Skip to content

搜索支持按文档分组展现搜索结果 #4772

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
88250 opened this issue May 3, 2022 · 15 comments
Closed

搜索支持按文档分组展现搜索结果 #4772

88250 opened this issue May 3, 2022 · 15 comments
Assignees
Milestone

Comments

@88250
Copy link
Member

88250 commented May 3, 2022

https://ld246.com/article/1651503408588

或者搜索面板 #3564 使用分组,全局搜索保持平铺不变。

@haogeek
Copy link

haogeek commented May 11, 2022

搜索面板和全局搜索从功能上有什么区别?为什么既要有搜索面板又要有全局搜索呢?

@88250
Copy link
Member Author

88250 commented May 11, 2022

搜索面板可能会支持按文档分组,全局搜索保持不变。

@haogeek
Copy link

haogeek commented May 13, 2022

两者的搜索规则和结果不一样吗?

@88250
Copy link
Member Author

88250 commented May 13, 2022

正文中链滴上的帖子有描述。

@88250
Copy link
Member Author

88250 commented May 13, 2022

主要是搜索结果展示有区别。

@QiuMP
Copy link

QiuMP commented Jun 17, 2022

这个功能我觉得可以做成用户能按照需求自行选择结果的展示形式

@88250 88250 changed the title 全局搜索按文档树分组 全局搜索按文档分组 Nov 18, 2022
@88250 88250 added this to the backlog milestone Nov 18, 2022
@88250 88250 changed the title 全局搜索按文档分组 搜索页签按文档分组或文档树结构展现 Nov 18, 2022
@88250 88250 modified the milestones: backlog, 2.5.1 Nov 18, 2022
@88250 88250 changed the title 搜索页签按文档分组或文档树结构展现 搜索页签按文档分组或按文档树结构展现 Nov 18, 2022
@88250 88250 changed the title 搜索页签按文档分组或按文档树结构展现 搜索页签支持按文档分组或按文档树结构展现 Nov 18, 2022
@88250 88250 modified the milestones: 2.5.1, 2.5.2 Nov 18, 2022
@roverway
Copy link

建议ctrl+p也能按所属文档分组,这个使用频率还挺高的,急需改进啊。

@88250
Copy link
Member Author

88250 commented Nov 22, 2022

建议ctrl+p也能按所属文档分组,这个使用频率还挺高的,急需改进啊。

全局搜索注重的是快捷,使用分组展现的话反而影响了效率。搜索页签注重的是常驻对照,这里做分组展现的意义比较大。

@88250 88250 changed the title 搜索页签支持按文档分组或按文档树结构展现 搜索支持按文档分组或按文档树结构展现 Nov 26, 2022
@88250 88250 changed the title 搜索支持按文档分组或按文档树结构展现 搜索支持按文档分组和按文档树结构展现 Nov 26, 2022
@88250
Copy link
Member Author

88250 commented Nov 26, 2022

@roverway 对了,你觉得按文档树结构(也就是层级)分组有必要吗?

@88250 88250 changed the title 搜索支持按文档分组和按文档树结构展现 搜索支持按文档分组 Nov 26, 2022
@88250 88250 changed the title 搜索支持按文档分组 搜索支持按文档分组展现搜索结果 Nov 26, 2022
Vanessa219 added a commit that referenced this issue Nov 27, 2022
Vanessa219 added a commit that referenced this issue Nov 27, 2022
@Zuoqiu-Yingyi
Copy link
Contributor

@Vanessa219 V 姐, v2.5.2 中搜索对话框与搜索页签项的搜索结果列表均为 <div id="searchList" class="search__list b3-list b3-list--background search__list">, 导致该 HTML 元素的 id 重复, 且 search__list 类名有两个

@Vanessa219
Copy link
Member

id 这个查询的时候会用父元素来进行限定,应该没有什么副作用。类重复这个下个版本修改。谢谢。

Vanessa219 added a commit that referenced this issue Nov 29, 2022
@roverway
Copy link

roverway commented Nov 29, 2022

@roverway 对了,你觉得按文档树结构(也就是层级)分组有必要吗?

@88250 刚看到这条,还没来得及时试用252。你指的是在按所属文档分组的基础上,进一步展现文档之间的层级关系吗?按我个人的使用习惯,觉得没必要,有点过于复杂了,没想到美观的展示方式,也不觉得这么做能带来额外的效率方面的提升。
一个不成熟的想法是,文档层级关系如果对部分用户有用的话,可以用类似鼠标hover后浮动提示的样式来体现。

@88250
Copy link
Member Author

88250 commented Nov 29, 2022

@roverway 嗯,文档树结构我们也觉得没有必要,后面再看情况吧。

@roverway
Copy link

@roverway 嗯,文档树结构我们也觉得没有必要,后面再看情况吧。

252的分组展示方式我觉得就可以,不用更复杂了,只是我这边觉得这个版本搜索越发慢了。

@88250
Copy link
Member Author

88250 commented Nov 30, 2022

@roverway 分组的话会比较慢,不分组应该和原来性能一样,这个我们后面再看看如何优化。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants