<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreSpotlight",
  "identifier" : "/documentation/CoreSpotlight/SpotlightSearchTool/Configuration-swift.struct/sources",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Spotlight",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:31_CoreSpotlight_FoundationModels0B10SearchToolV13ConfigurationV7sourcesSayAA0E6SourceVGvp"
  },
  "title" : "sources"
}
-->

# sources

The data sources and options to use during a search.

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

## Discussion

Use this property to specify where you want [`SpotlightSearchTool`](/documentation/CoreSpotlight/SpotlightSearchTool) to look for your app’s data.
Fill this property with [`CoreSpotlightSource`](/documentation/CoreSpotlight/CoreSpotlightSource) or [`FileSource`](/documentation/CoreSpotlight/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`](/documentation/CoreSpotlight/CoreSpotlightSource)
to search your app’s Spotlight index.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)