---
title: maxSuggestionCount
framework: corespotlight
role: symbol
role_heading: Instance Property
path: corespotlight/csuserquerycontext/maxsuggestioncount
---

# maxSuggestionCount

The maximum number of suggested text completions for the query to return.

## Declaration

```swift
var maxSuggestionCount: Int { get set }
```

## Discussion

Discussion You might specify different limits to account for the amount of available space.

## See Also

### Configuring search options

- [maxResultCount](corespotlight/csuserquerycontext/maxresultcount.md)
- [disableSemanticSearch](corespotlight/csuserquerycontext/disablesemanticsearch.md)
