---
title: sourceOptions
framework: corespotlight
role: symbol
role_heading: Instance Property
path: corespotlight/cssearchquerycontext/sourceoptions-swift.property
---

# sourceOptions

The query source options to allow or deny Mail messages in the search.

## Declaration

```swift
var sourceOptions: CSSearchQueryContext.SourceOptions { get set }
```

## See Also

### Configuring search behavior

- [fetchAttributes](corespotlight/cssearchquerycontext/fetchattributes.md)
- [keyboardLanguage](corespotlight/cssearchquerycontext/keyboardlanguage.md)
- [CSSearchQueryContext.SourceOptions](corespotlight/cssearchquerycontext/sourceoptions-swift.struct.md)
