问题标签 [spotlight-plugin]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
swift - 关于 CSSearchQuery 和 Spotlight 的问题
我已通过 CSSearchableItemAttributeSet 将我的应用程序的内容添加到 iOS Spotlight,并且在使用中很容易从 Spotlight 中找到它们。我想通过 CSSearchQuery 在应用程序中实现类似的效果,但我目前遇到了问题。
在系统的聚光灯下,用户可以使用模糊查询来找到他们想要的信息。
例如,如果我的内容是中文“你好”,用户不仅可以通过“你好”找到该内容,还可以使用“你好”来查找相同的内容。(“你好”是拉丁语拼音对应的中文单词'你好')。
但是,我无法在 CKSearchQuery 中实现类似的效果。目前CKSearchQuery只有[cdwt]四种方式,有没有其他方式可以实现上述查询能力。或者 Apple 可能没有在 CKSearchQuery 中打开此功能。