Skip to content
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

搜索功能优化 #11254

Closed
V7kb opened this issue May 5, 2024 · 7 comments
Closed

搜索功能优化 #11254

V7kb opened this issue May 5, 2024 · 7 comments
Assignees

Comments

@V7kb
Copy link

V7kb commented May 5, 2024

In what scenarios do you need this feature?

现状:在已搜索时,点击切换已保存的查询条件,搜索框中的文本会被清空,需要重新输入进行搜索。

需求:点击切换已保存的查询条件,文本框中的内容不会被清空,且自动执行搜索。例如:当前查询条件是标题,搜索“AAA”,显示出10条标题的搜索结果。点击切换保存查询条件为文本块+嵌入块,则自动显示“AAA”的文本块+嵌入块搜索结果。

按照现有的搜索形式,搜索流程应该是:打开搜索框——选择保存的查询条件——输入关键词搜索——找到需要的内容。
实际使用中,更合理的搜索流程是:打开搜索框——输入关键词搜索——未找到结果——切换查询条件——找到需要的内容

Describe the optimal solution

1

Describe the candidate solution

1

Other information

1

@Vanessa219
Copy link
Member

保存查询条件是会把搜索内容一起保存的,因为搜索内容也是查询条件的一部分。丢弃的话,还需要看一下其他用户的反馈。

@Vanessa219
Copy link
Member

我先关闭了,有其他用户有同样的需求可继续添加评论。

@TCOTC
Copy link
Contributor

TCOTC commented May 25, 2024

如果查询条件的搜索内容为空,我觉得不需要清空已有的搜索内容,不然就太麻烦了

@Vanessa219
Copy link
Member

为什么要保存为空,也许就是想空着。

@TCOTC
Copy link
Contributor

TCOTC commented May 26, 2024

就我而言,保存为空是不想将搜索文本替换为之前搜索的文本。

也许就是想空着

既然是搜索,那肯定不会需要空着,空着咋搜索

@V7kb
Copy link
Author

V7kb commented May 26, 2024

就我而言,保存为空是不想将搜索文本替换为之前搜索的文本。

也许就是想空着

既然是搜索,那肯定不会需要空着,空着咋搜索

是的。当保存为空时,对搜索来说,没有意义。我现在把保存为空作为更换搜索类型的方式。但问题在于需要重新输入关键词

@Vanessa219
Copy link
Member

如果切换后发现当前输入框内容不符合,还是需要去清空的。这个需求再看看其他用户的反馈吧。

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

No branches or pull requests

3 participants