Skip to content

Add to Database search on database title only #10934

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
3 tasks done
5kyfkr opened this issue Apr 8, 2024 · 10 comments
Closed
3 tasks done

Add to Database search on database title only #10934

5kyfkr opened this issue Apr 8, 2024 · 10 comments
Assignees
Milestone

Comments

@5kyfkr
Copy link

5kyfkr commented Apr 8, 2024

添加到数据库功能搜索数据库第一个字符时无法匹配

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

如下图,这是在全新的工作空间下,除了那个主题概念库是从我的笔记本中导出来的,其他都是刚创建的库
image
搜索新建的库打第一个“文”字的时候会出现对应的库,这是正常情况。
image
可是打“主”字的时候,感觉没有搜索到对应的主题库,显示了许多无关项目
image
然后再多打一个字就会正常搜到
image

以下是导出的笔记本,可以复现
123.sy.zip

Expected result

打第一个字应能正常搜索

Screenshot or screen recording presentation

No response

Version environment

- Version: 3.0.8 Dev2
- Operating System:win10 
- Browser (if used):

Log file

无报错

More information

No response

@TCOTC
Copy link
Contributor

TCOTC commented Apr 8, 2024

好像只要是单个字就会有问题:

image

@5kyfkr
Copy link
Author

5kyfkr commented Apr 8, 2024

好像只要是单个字就会有问题:

是滴,很奇怪,新建工作空间的新数据库又没问题

@88250
Copy link
Member

88250 commented Apr 8, 2024

因为这是在数据库块上搜索(和全局搜索一样),所以会匹配中数据库中的内容。

@5kyfkr
Copy link
Author

5kyfkr commented Apr 8, 2024

因为这是在数据库块上搜索(和全局搜索一样),所以会匹配中数据库中的内容。

不太好吧,这个只是对数据库标题进行搜索应该就够了,而且只有第一个字匹配数据库中的内容也没意义吧,图中数据库里是空的也被匹配到了

@TCOTC
Copy link
Contributor

TCOTC commented Apr 8, 2024

因为这是在数据库块上搜索(和全局搜索一样),所以会匹配中数据库中的内容。

这样很奇怪的,搜索结果又看不见匹配到的内容(只能看见数据库名和路径),匹配到了也没有意义,反而影响正常搜索数据库名

@88250
Copy link
Member

88250 commented Apr 8, 2024

嗯,那就改成仅搜索数据库标题吧。

@88250 88250 self-assigned this Apr 8, 2024
@88250 88250 changed the title 添加到数据库功能搜索数据库第一个字符时无法匹配 Add to Database Search on database title only Apr 8, 2024
@88250
Copy link
Member

88250 commented Apr 8, 2024

改了以后需要重建索引才行。

@88250 88250 added this to the 3.0.8 milestone Apr 8, 2024
@88250 88250 changed the title Add to Database Search on database title only Add to Database search on database title only Apr 8, 2024
88250 added a commit that referenced this issue Apr 8, 2024

Verified

This commit was signed with the committer’s verified signature.
@88250
Copy link
Member

88250 commented Apr 8, 2024

不需要重建索引,之前发的信息有误,抱歉抱歉。

@88250 88250 closed this as completed Apr 8, 2024
@5kyfkr
Copy link
Author

5kyfkr commented Apr 8, 2024

不需要重建索引,之前发的信息有误,抱歉抱歉。

好滴

@5kyfkr
Copy link
Author

5kyfkr commented Apr 9, 2024

试了好用很多,妈妈再也不用担心我找不到对应的数据库了

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

3 participants