---
title: CSSearchQueryContext
framework: corespotlight
role: symbol
role_heading: Class
path: corespotlight/cssearchquerycontext
---

# CSSearchQueryContext

The behavior configuration to use for a search query.

## Declaration

```swift
class CSSearchQueryContext
```

## Mentioned in

Searching for information in your app

## Topics

### Configuring search behavior

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

### Filtering the results

- [filterQueries](corespotlight/cssearchquerycontext/filterqueries.md)

### Initializers

- [init(coder:)](corespotlight/cssearchquerycontext/init(coder:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Inherited By

- [CSUserQueryContext](corespotlight/csuserquerycontext.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Queries

- [Building a search interface for your app](corespotlight/building-a-search-interface-for-your-app.md)
- [Searching for information in your app](corespotlight/searching-for-information-in-your-app.md)
- [CSUserQuery](corespotlight/csuserquery.md)
- [CSUserQueryContext](corespotlight/csuserquerycontext.md)
- [CSSearchQuery](corespotlight/cssearchquery.md)
- [CSSuggestion](corespotlight/cssuggestion.md)
