_CoreSpotlight_FoundationModels · IOS API REFERENCE
SearchPipelineData
struct · iOS 27.0+ · SDK 27.1
struct SearchPipelineData
The type you use to store the output from a custom stage.
A custom stage receives data as input and generate a `SearchPipelineData` structure as output. When generating
output for a stage in your `execute` methods, build the output data and wrap it with this structure before returning it.
This type manages the handoff of your output data to the next stage in the pipeline or to the model.
Creates a pipeline data structure from the an array of scored searchable items.
- Parameters:
- items: The scored searchable items your stage produces.
Creates a pipeline data structure from a dictionary of attributes and searchable items.
- Parameters:
- items: The scored searchable items your stage produces.
Initializes the pipeline data with the specified payload value.
- Parameters:
- payload: The data your custom stage produced as its output. Use the ``SearchPipelineData/Payload``
type to construct this value.
Creates a pipeline data structure from statistical information.
- Parameters:
- name: The name of the statistic your stage produced. Specify strings like “average”, “max”, “min”, “sum”, “median”, or “stddev”.
- value: The statistical value you generated.