---
title: SpotlightSearchTool.ContentDomain
framework: corespotlight
role: symbol
role_heading: Structure
path: corespotlight/spotlightsearchtool/contentdomain
---

# SpotlightSearchTool.ContentDomain

A content domain that defines which fields and attribute mappings are presented to the model during a focused search session.

## Declaration

```swift
struct ContentDomain
```

## Overview

Overview 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)))

## Topics

### Getting the audio domain

- [audio](corespotlight/spotlightsearchtool/contentdomain/audio-swift.type.property.md)
- [audio(_:)](corespotlight/spotlightsearchtool/contentdomain/audio(_:).md)
- [SpotlightSearchTool.ContentDomain.Audio](corespotlight/spotlightsearchtool/contentdomain/audio-swift.struct.md)

### Getting the calendar domain

- [calendar](corespotlight/spotlightsearchtool/contentdomain/calendar-swift.type.property.md)
- [calendar(_:)](corespotlight/spotlightsearchtool/contentdomain/calendar(_:).md)
- [SpotlightSearchTool.ContentDomain.Calendar](corespotlight/spotlightsearchtool/contentdomain/calendar-swift.struct.md)

### Getting the communications domain

- [communications](corespotlight/spotlightsearchtool/contentdomain/communications-swift.type.property.md)
- [communications(_:)](corespotlight/spotlightsearchtool/contentdomain/communications(_:).md)
- [SpotlightSearchTool.ContentDomain.Communications](corespotlight/spotlightsearchtool/contentdomain/communications-swift.struct.md)

### Getting the documents domain

- [documents](corespotlight/spotlightsearchtool/contentdomain/documents-swift.type.property.md)
- [documents(_:)](corespotlight/spotlightsearchtool/contentdomain/documents(_:).md)
- [SpotlightSearchTool.ContentDomain.Documents](corespotlight/spotlightsearchtool/contentdomain/documents-swift.struct.md)

### Getting the items domain

- [items](corespotlight/spotlightsearchtool/contentdomain/items-swift.type.property.md)
- [items(_:)](corespotlight/spotlightsearchtool/contentdomain/items(_:).md)
- [SpotlightSearchTool.ContentDomain.Items](corespotlight/spotlightsearchtool/contentdomain/items-swift.struct.md)

### Getting the visual media domain

- [visualMedia](corespotlight/spotlightsearchtool/contentdomain/visualmedia-swift.type.property.md)
- [visualMedia(_:)](corespotlight/spotlightsearchtool/contentdomain/visualmedia(_:).md)
- [SpotlightSearchTool.ContentDomain.VisualMedia](corespotlight/spotlightsearchtool/contentdomain/visualmedia-swift.struct.md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Configuring the tool behavior

- [configuration](corespotlight/spotlightsearchtool/configuration-swift.property.md)
- [SpotlightSearchTool.Configuration](corespotlight/spotlightsearchtool/configuration-swift.struct.md)
- [SpotlightSearchTool.Guide](corespotlight/spotlightsearchtool/guide.md)
- [SpotlightSearchTool.GuidanceProfile](corespotlight/spotlightsearchtool/guidanceprofile.md)
- [SpotlightSearchTool.GuidanceLevel](corespotlight/spotlightsearchtool/guidancelevel.md)
- [SpotlightSearchTool.FormatLevel](corespotlight/spotlightsearchtool/formatlevel.md)
