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

# maximumResultCount

The maximum number of results to retrieve from this source.

## Declaration

```swift
var maximumResultCount: Int?
```

## Discussion

Discussion Use this property to limit the number of results the Spotlight search tool returns to the model. If you specify nil, the tool returns all results that match the model’s query. This maximum applies only to the current source, and doesn’t include results from other sources, which have their own maximum values. The default value of this property is nil.

## See Also

### Configuring the search options

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