---
title: "statistic(name:value:)"
framework: corespotlight
role: symbol
role_heading: Type Method
path: "corespotlight/searchpipelinedata/statistic(name:value:)"
---

# statistic(name:value:)

## Declaration

```swift
static func statistic(name: String, value: Double) -> SearchPipelineData
```

## See Also

### Configuring the pipeline data

- [init(payload:)](corespotlight/searchpipelinedata/init(payload:).md)
- [items(_:)](corespotlight/searchpipelinedata/items(_:).md)
- [scoredItems(_:)](corespotlight/searchpipelinedata/scoreditems(_:).md)
- [groupedItems(_:)](corespotlight/searchpipelinedata/groupeditems(_:).md)
- [text(_:)](corespotlight/searchpipelinedata/text(_:).md)
- [count(_:)](corespotlight/searchpipelinedata/count(_:).md)
- [table(_:)](corespotlight/searchpipelinedata/table(_:).md)
