Replying to: MuellerSimhofer:

I haven’t implemented anything like that for myself, but Spotlight indexes the Files app anyway. What’s the point of building a custom index?