One Logo Pool Ball
_CoreSpotlight_FoundationModels · IOS API REFERENCE

ScoredSearchableItem

struct · iOS 27.0+ · SDK 27.1

struct ScoredSearchableItem

A searchable item paired with a caller-assigned relevance score. 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`` when the stage’s output type is ``SearchPipelineDataType/scoredItems``.

Members (3)

get · iOS 27.0+

item

TypeScript
get item(): _CoreSpotlight_SearchableItem
Swift declaration
let item: SearchableItem

The searchable item from the app’s index.

init · iOS 27.0+

init

TypeScript
static init(item: _CoreSpotlight_SearchableItem, score: number): ScoredSearchableItem
Swift declaration
init(item: SearchableItem, score: Double)

Initializes the type with the specified item and score values. - Parameters: - item: The searchable item from the app’s index. - score: The relevance score for `item`.

get · iOS 27.0+

score

TypeScript
get score(): number
Swift declaration
let score: Double

The relevance score for the item. The stage defines the scale for values of this type, but higher indicate greater relevance.

Skipped declarations

No declarations were skipped in this snapshot.

All _CoreSpotlight_FoundationModels types →