---
title: CSUserQuery.Suggestion
framework: corespotlight
role: symbol
role_heading: Structure
path: corespotlight/csuserquery/suggestion
---

# CSUserQuery.Suggestion

A suggested text completion for a query’s search term.

## Declaration

```swift
struct Suggestion
```

## Mentioned in

Building a search interface for your app

## Discussion

Discussion When executing its query, a CSUserQuery object returns both results and suggestions for text completions of the current term. Use the suggestion property of this structure to get one of the suggestions to display in your app’s interface and use in a new query.

## Topics

### Instance Properties

- [suggestion](corespotlight/csuserquery/suggestion/suggestion.md)

## Relationships

### Conforms To

- [Comparable](swift/comparable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Identifiable](swift/identifiable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Executing the query automatically

- [responses](corespotlight/csuserquery/responses-swift.property.md)
- [suggestions](corespotlight/csuserquery/suggestions-swift.property.md)
- [CSUserQuery.Responses](corespotlight/csuserquery/responses-swift.struct.md)
- [CSUserQuery.Suggestions](corespotlight/csuserquery/suggestions-swift.struct.md)
- [CSUserQuery.Item](corespotlight/csuserquery/item.md)
