<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreSpotlight",
  "identifier" : "/documentation/CoreSpotlight/SearchPipelineDataType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Core Spotlight",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:31_CoreSpotlight_FoundationModels22SearchPipelineDataTypeO"
  },
  "title" : "SearchPipelineDataType"
}
-->

# SearchPipelineDataType

Data types that a pipeline stage accepts or produces.

```
enum SearchPipelineDataType
```

## Overview

Use this type to specify the input and output values your [`CustomStage`](/documentation/CoreSpotlight/CustomStage) supports. Foundation models use this
information to validate that data can pass from one stage to the next.

## Topics

### Getting the pipeline data type

[`case items`](/documentation/CoreSpotlight/SearchPipelineDataType/items)

Searchable items from the app’s index.

[`case scoredItems`](/documentation/CoreSpotlight/SearchPipelineDataType/scoredItems)

Searchable items with an assigned score.

[`case groupedItems`](/documentation/CoreSpotlight/SearchPipelineDataType/groupedItems)

A dictionary that maps searchable items to the attributes they contain.

[`case text`](/documentation/CoreSpotlight/SearchPipelineDataType/text)

An LLM-generated text summary or analysis.

[`case count`](/documentation/CoreSpotlight/SearchPipelineDataType/count)

A scalar count of the number of items.

[`case statistic`](/documentation/CoreSpotlight/SearchPipelineDataType/statistic)

A scalar value that reflects a stastical calculation such as an average, minimum, or maximum.

[`case table`](/documentation/CoreSpotlight/SearchPipelineDataType/table)

Data suitable for a table or chart.

## Relationships

### Conforms To

[`Escapable`](/documentation/Swift/Escapable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Copyable`](/documentation/Swift/Copyable)

[`Sendable`](/documentation/Swift/Sendable)

[`Decodable`](/documentation/Swift/Decodable)

[`CaseIterable`](/documentation/Swift/CaseIterable)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Encodable`](/documentation/Swift/Encodable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)