Spotlight 可以索引 MacFUSE 文件系统吗?

发布于 2024-07-10 15:47:14 字数 234 浏览 4 评论 0原文

Spotlight 在文件级别进行索引,因此包含复杂数据结构的文件可能需要拆分为一组文件,以便 Spotlight 能够以有用的方式对其进行索引。

您可以使用 MacFUSE 更动态地实现这一点吗?

Spotlight 会对 MacFUSE 卷建立索引吗?

MacFUSE 可以处理必要的每个文件元数据吗?

文件属性更改时,MacFUSE 进程能否通知 Spotlight?

Spotlight indexes at the file level, so a file containing a complicated data structure may need to be split into a set of files for Spotlight to index it in a useful way.

Can you use MacFUSE to achieve this more dynamically?

Will Spotlight index a MacFUSE volume?

Can MacFUSE handle the necessary per-file metadata?

Can a MacFUSE process notify Spotlight when attributes of a file change?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

三生殊途 2024-07-17 15:47:14

我自己也用这个进行过测试。

我在 MacFuse Wiki 上找到了这个:
(http://code.google.com/p/macfuse/wiki/OPTIONS)
如果您希望在 MacFUSE 卷上使用 Spotlight,则需要使用allow_other。

我发现它也适用于allow_root。

但是,我必须通过使用自己启用索引
/Volume 上的 mdutil -i
(正如codelogic已经提到的)

所以,如果它不起作用,请尝试allow_root或allow_other

更多测试:
允许根不起作用。 它可以索引一次,但它似乎不会索引子文件夹中新创建的文件。 当更改为allow_other时,聚光灯似乎可以检测到新的更改,并索引新文件。 ==> allowed_other 是一个要求

I've been testing with this myself.

I found this on the MacFuse Wiki:
(http://code.google.com/p/macfuse/wiki/OPTIONS)
if you wish to use Spotlight on a MacFUSE volume, you'll need to use allow_other.

I've discovered that it also works with allow_root.

However, I had to enable indexing myself by using
mdutil -i on /Volume
(as codelogic already mentioned)

So, if it does not work, try allow_root or allow_other

More testing:
Allow_root does not work. it can index once, but it doesn't seem to index newly created files in subfolders. When changing to allow_other, it seems spotlight CAN detect the new changes, and index the new files. ==> allow_other is a requirement

坏尐絯 2024-07-17 15:47:14

您可以使用 mdutil 命令来启用外部卷上的索引。 它也应该适用于 MacFUSE 卷。

sudo mdutil -i on /Volumes/SomeVolume

You can use the mdutil command to enable indexing on external volumes. It should be applicable to MacFUSE volumes as well.

sudo mdutil -i on /Volumes/SomeVolume
ㄖ落Θ余辉 2024-07-17 15:47:14

因此,包含复杂数据结构的文件可能需要拆分为一组文件,以便 Spotlight 能够以有用的方式对其进行索引。

如果要索引自定义文件,则需要编写自己的 Spotlight 索引器来理解此文件类型 - XCode 有一个用于此的模板。

so a file containing a complicated data structure may need to be split into a set of files for Spotlight to index it in a useful way.

If you want to index a custom file, you need to write your own Spotlight indexer that understands this file type - XCode has a template for this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文