SpotlightSearchTool.GuidanceLevel.focused(_:)
An option to search only specific types of content.
Declaration
case focused(SpotlightSearchTool.ContentDomain = .items)Mentioned in
Discussion
Choose this option to search attributes only for the specified types of content. You can initialize this value with one or more domains, each of which specifies a particular type of content. During a search, the Spotlight search tool considers only the attributes in the specified domains. The tool also sends data back to the model in a compact format that’s more suitable for models with limited-size context windows.