---
title: scopes
framework: corespotlight
role: symbol
role_heading: Instance Property
path: corespotlight/filesource/scopes
---

# scopes

The directories to search.

## Declaration

```swift
var scopes: [URL]
```

## Discussion

Discussion Specify one or more directory URLs to scope the search to those directories and their subdirectories. The default value of this property is an empty array, which searches all indexed volumes.

## See Also

### Configuring the search options

- [fetchAttributes](corespotlight/filesource/fetchattributes.md)
- [maximumResultCount](corespotlight/filesource/maximumresultcount.md)
