SpotlightSearchTool.ContentDomain
A content domain that defines which fields and attribute mappings are presented to the model during a focused search session.
Declaration
struct ContentDomainOverview
Each domain exposes a small set of fields tuned for a specific category of user content. Developers can override the default attribute mappings.
Usage:
// Default communications schema
let guide = SpotlightSearchTool.Guide(level: .focused(.communications))
// Custom document field mapping
let domain = SpotlightSearchTool.ContentDomain.Documents(
authors: [.authorNames, SearchableItemAttribute(rawValue: "com.myapp.chef")]
)
let guide = SpotlightSearchTool.Guide(level: .focused(.documents(domain)))