---
title: SpotlightSearchTool.Configuration
framework: corespotlight
role: symbol
role_heading: Structure
path: corespotlight/spotlightsearchtool/configuration-swift.struct
---

# SpotlightSearchTool.Configuration

The configuration data to use when creating a Spotlight search tool.

## Declaration

```swift
struct Configuration
```

## Mentioned in

Making your indexed content available to Foundation Models

## Overview

Overview Use this structure to specify the data sources, guidance, and options for SpotlightSearchTool to use when performing searches. Create an instance of this structure as part of the setup of the search tool, and configure it with the information you want. For more information about configuring the search tool, see Making your indexed content available to Foundation Models.

## Topics

### Creating the configuration object

- [init(sources:guide:contactResolver:customStages:)](corespotlight/spotlightsearchtool/configuration-swift.struct/init(sources:guide:contactresolver:customstages:).md)

### Configuring the search sources

- [sources](corespotlight/spotlightsearchtool/configuration-swift.struct/sources.md)

### Resolving contacts

- [contactResolver](corespotlight/spotlightsearchtool/configuration-swift.struct/contactresolver.md)

### Customizing the output

- [guide](corespotlight/spotlightsearchtool/configuration-swift.struct/guide.md)
- [customStages](corespotlight/spotlightsearchtool/configuration-swift.struct/customstages.md)

## Relationships

### Conforms To

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

## See Also

### Tool configuration

- [SpotlightSearchTool](corespotlight/spotlightsearchtool.md)
