---
title: sources
framework: corespotlight
role: symbol
role_heading: Instance Property
path: corespotlight/spotlightsearchtool/configuration-swift.struct/sources
---

# sources

The data sources and options to use during a search.

## Declaration

```swift
var sources: [SearchSource]
```

## Discussion

Discussion Use this property to specify where you want SpotlightSearchTool to look for your app’s data. Fill this property with CoreSpotlightSource or FileSource types. If you specify multiple search sources, the tool searches all of them and delivers the merged results to the model. Each source object also has options about how much data to retrieve from the source, which you can use to control how much data you send to the model. If you don’t specify a value for this property, the search tool uses a default CoreSpotlightSource to search your app’s Spotlight index.
