item
TypeScriptget item(): _CoreSpotlight_SearchableItemSwift declarationlet item: SearchableItemThe searchable item from the app’s index.
struct · iOS 27.0+ · SDK 27.1
struct ScoredSearchableItemA 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``.
get item(): _CoreSpotlight_SearchableItemSwift declarationlet item: SearchableItemThe searchable item from the app’s index.
static init(item: _CoreSpotlight_SearchableItem, score: number): ScoredSearchableItemSwift declarationinit(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 score(): numberSwift declarationlet score: DoubleThe relevance score for the item. The stage defines the scale for values of this type, but higher indicate greater relevance.
No declarations were skipped in this snapshot.