CustomSearchDataProvider

public protocol CustomSearchDataProvider

Enables injection of custom search data to the search engine.

Important

This is a Public Preview API. It may be changed or removed at any time.
  • RecordType to be used as a data source for the search service.

    Declaration

    Swift

    associatedtype RecordType : CustomRecord
  • Data provider name. This uniquely identifies a custom data provider. RecordType.id should be unique within a provider. The combination of name and RecordType.id is a unique reference to a custom data record.

    Declaration

    Swift

    var name: String { get }
  • A collection of RecordType to be used as a data source for the search service.

    Declaration

    Swift

    var records: [RecordType] { get set }