how can I use core spotlight
Generated on 1/19/2025
1 search
To use Core Spotlight, you can follow the guidance from the session titled "Support semantic search with Core Spotlight" from WWDC 2024. Core Spotlight allows your app to donate searchable content to Spotlight, which is stored in a private, local index on the device. This enables users to search for your app's content directly from Spotlight.
Here are some key steps and features to consider:
-
Donate Searchable Content: You can donate content to Spotlight by creating a searchable index within your app's sandbox container. If your items reference attachments or web content, consider donating these as separate items with their own content type and attributes.
-
Semantic Search: Core Spotlight now supports semantic search, allowing users to search for content in your app using terms that are similar in meaning, rather than requiring exact matches. This is enabled by default and can be configured to return ranked results using machine learning models.
-
Index Delegate Extension: You can set up an index delegate extension to handle reindexing requests from Spotlight. This allows Spotlight to schedule indexing during favorable device conditions, such as when the device is idle.
-
Ranking and Suggestions: Improve the search experience by donating signals that enhance the ranking of content based on user engagement and freshness. You can configure queries to support a suggestions menu in your app and use engagement signals to improve future search rankings.
For a detailed walkthrough, you can refer to the session Support semantic search with Core Spotlight (01:37) which covers searchable content, and Support semantic search with Core Spotlight (06:56) for results and suggestions.

Discover RealityKit APIs for iOS, macOS and visionOS
Learn how new cross-platform APIs in RealityKit can help you build immersive apps for iOS, macOS, and visionOS. Check out the new hover effects, lights and shadows, and portal crossing features, and view them in action through real examples.

Support semantic search with Core Spotlight
Learn how to provide semantic search results in your app using Core Spotlight. Understand how to make your app’s content available in the user’s private, on-device index so people can search for items using natural language. We’ll also share how to optimize your app’s performance by scheduling indexing activities. To get the most out of this session, we recommend first checking out Core Spotlight documentation on the Apple Developer website.

Bring your app’s core features to users with App Intents
Learn the principles of the App Intents framework, like intents, entities, and queries, and how you can harness them to expose your app’s most important functionality right where people need it most. Find out how to build deep integration between your app and the many system features built on top of App Intents, including Siri, controls and widgets, Apple Pencil, Shortcuts, the Action button, and more. Get tips on how to build your App Intents integrations efficiently to create the best experiences in every surface while still sharing code and core functionality.

What’s new in App Intents
Learn about improvements and all-new features with App Intents, and discover how this framework can help you expose your app’s functionality to Siri, Spotlight, Shortcuts, and more. We’ll show you how to make your entities more meaningful to the platform with the Transferable API, File Representations, new IntentFile APIs, and Spotlight Indexing, opening up powerful functionality in Siri and the Shortcuts app. Empower your intents to take people deep into your app with URL Representable Entities. Explore new techniques to model your entities and intents with new APIs for error handling and union values.