---
title: SearchStatistic
framework: corespotlight
role: symbol
role_heading: Structure
path: corespotlight/searchstatistic
---

# SearchStatistic

A scalar statistic derived from search results (sum, average, max, min, median, stddev).

## Declaration

```swift
struct SearchStatistic
```

## Topics

### Creating a search statistic

- [init(name:value:header:)](corespotlight/searchstatistic/init(name:value:header:).md)

### Getting the statistic details

- [name](corespotlight/searchstatistic/name.md)
- [header](corespotlight/searchstatistic/header.md)
- [value](corespotlight/searchstatistic/value.md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Search results

- [SearchCount](corespotlight/searchcount.md)
- [SearchResultsTable](corespotlight/searchresultstable.md)
- [SearchTextResult](corespotlight/searchtextresult.md)
