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

# ScoredSearchableItem

A searchable item paired with a caller-assigned relevance score.

```
struct ScoredSearchableItem
```

## Overview

Use this type to associate a score with a searchable item from the app’s index. You create instances of this
type from a [`CustomStage`](/documentation/CoreSpotlight/CustomStage) when the stage’s output type is [`SearchPipelineDataType.scoredItems`](/documentation/CoreSpotlight/SearchPipelineDataType/scoredItems).

## Topics

### Creating the item

[`init(item: SearchableItem, score: Double)`](/documentation/CoreSpotlight/ScoredSearchableItem/init(item:score:))

Initializes the type with the specified item and score values.

### Getting the item details

[`let item: SearchableItem`](/documentation/CoreSpotlight/ScoredSearchableItem/item)

The searchable item from the app’s index.

[`let score: Double`](/documentation/CoreSpotlight/ScoredSearchableItem/score)

The relevance score for the item.

## Relationships

### Conforms To

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

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

---

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)