<!--
{
  "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/SearchTextResult",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core Spotlight",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:31_CoreSpotlight_FoundationModels16SearchTextResultV"
  },
  "title" : "SearchTextResult"
}
-->

# SearchTextResult

LLM-generated text summary or analysis from a pipeline stage.

```
struct SearchTextResult
```

## Topics

### Creating a text result

[`init(body: String, header: String?)`](/documentation/CoreSpotlight/SearchTextResult/init(body:header:))

### Getting the result details

[`let header: String?`](/documentation/CoreSpotlight/SearchTextResult/header)

A short description of what this text represents.

[`let body: String`](/documentation/CoreSpotlight/SearchTextResult/body)

The text body.

## Relationships

### Conforms To

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

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

---

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)