We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
/api/filetree/upsertIndexes
/api/filetree/removeIndexes
局部的索引重建及API支持
想要一个局部的索引重建。而不是全局的。 在有的时候文件的更改,实际上用户是已知的,比如说在资源管理器中,从外部文件夹直接将.sy文件拖出来到对应的sy文档文件目录下。但是这个时候肯定需要重建索引,那么一个局部的索引重建就显得有必要,而且不光提供这个功能特性,还可能需要api的支持。
它可以指定以哪个文档节点或者笔记本为根部,然后将所有的后代文件进行索引的重建。
但是在有的时候可能用户自己清楚在某个文件夹下新增了哪些文件,那么只需要对新增的文件进行索引重建即可。 比如说,我原来有一个文件夹下面有500个.sy文件,那这样的话我新增了10个,可能要做510次的索引重建,这样的话其实是很不划算的,如果用户能指定对哪个文件进行索引重建,用户只需要给出一个列表来,相当于对他登记入库。 这就很好了。
反正通过提供不同的api来说可能会比较好。
No response
The text was updated successfully, but these errors were encountered:
下个版本提供两个内部内核 API 来支持根据指定的路径重建/删除索引。这两个 APIs 的参数都是传入一个路径数组,路径为相对于 工作空间/data/ 的文件路径,比如:
/20210808180117-czj9bvb/20200812220555-lj3enxa.sy
/20210808180117-czj9bvb/20200812220555-lj3enxa/
/
Sorry, something went wrong.
🎨 Add internal kernel API /api/filetree/upsertIndexes and `/api/fil…
286654c
…etree/removeIndexes` #10079
Merge commit '796df799315490e3a9d6e045f1c6bc98fb661e45'
3850c00
* commit '796df799315490e3a9d6e045f1c6bc98fb661e45': (455 commits) 🐛 Fix `name` attribute could not be visited in the plugin constructor (siyuan-note#10071) 🎨 Support ignore index siyuan-note#9198 ♻️ Rename func 🎨 siyuan-note#10090 🎨 Reduce the delay in adding rows in database table view siyuan-note#10082 🎨 Reduce the delay in adding rows in database table view siyuan-note#10082 🎨 siyuan-note#10065 🎨 Cards expired no longer appear in the same review round siyuan-note#10087 🎨 https://ld246.com/article/1704285860053/comment/1704528635155#comments 🐛 fix siyuan-note#10088 🎨 https://ld246.com/article/1704285860053 🎨 fix siyuan-note#10086 🎨 fix siyuan-note#10085 🎨 fix siyuan-note#10048 🎨 Add internal kernel API `/api/filetree/upsertIndexes` and `/api/filetree/removeIndexes` siyuan-note#10079 🎨 fix siyuan-note#10083 ⬆️ Upgrade kernel deps ⬆️ Upgrade kernel deps 🎨 fix siyuan-note#10000 🎨 siyuan-note#10065 ... # Conflicts: # app/src/util/needSubscribe.ts # kernel/model/conf.go
88250
No branches or pull requests
局部的索引重建及API支持
In what scenarios do you need this feature?
想要一个局部的索引重建。而不是全局的。
在有的时候文件的更改,实际上用户是已知的,比如说在资源管理器中,从外部文件夹直接将.sy文件拖出来到对应的sy文档文件目录下。但是这个时候肯定需要重建索引,那么一个局部的索引重建就显得有必要,而且不光提供这个功能特性,还可能需要api的支持。
Describe the optimal solution
它可以指定以哪个文档节点或者笔记本为根部,然后将所有的后代文件进行索引的重建。
但是在有的时候可能用户自己清楚在某个文件夹下新增了哪些文件,那么只需要对新增的文件进行索引重建即可。
比如说,我原来有一个文件夹下面有500个.sy文件,那这样的话我新增了10个,可能要做510次的索引重建,这样的话其实是很不划算的,如果用户能指定对哪个文件进行索引重建,用户只需要给出一个列表来,相当于对他登记入库。
这就很好了。
反正通过提供不同的api来说可能会比较好。
Describe the candidate solution
No response
Other information
No response
The text was updated successfully, but these errors were encountered: