-
Notifications
You must be signed in to change notification settings - Fork 94
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
macOS: use native Spotlight #1808
Comments
I assume you mean the Core Spotlight API[1] ? Glancing through the documentation, the API allows for indexing files so it should be feasible, at a high level. There are a few fundamental technical challenges to solve off the bat:
[1] https://developer.apple.com/documentation/corespotlight?language=objc |
Objective-C is an extension to C. The two can be mixed without too much issue (C++ on the other hand....). Forking shouldn't be an issue if you isolate the interface to a separate process (this can keep the Netatalk side as C as well, just wrap the Obj-C calls in that separate helper process). Meson shouldn't have a problem with Objective-C. All the major compiler suites support it as well. |
There's a C-based API in CoreServices called SearchKit. |
Search Kit seems like the more appropriate API to use for this purpose.
https://developer.apple.com/documentation/coreservices/search_kit?language=objc |
Since 10.4, macOS has had a powerful search engine called Spotlight. It should be possible for Netatalk, if ran on a macOS computer, to hook into the built-in search service. This would remove the need to set-up a separate search tracker on Macs to get search working.
The text was updated successfully, but these errors were encountered: