IndexableDataResolver
public protocol IndexableDataResolver
An object responsible for fetching object details and converting SearchSuggestion
into SearchResult
.
-
That identifier helps to find appropriate resolver for
SearchResultSuggestion
Declaration
Swift
static var providerIdentifier: String { get }
-
Resolves
SearchResultSuggestion
intoSearchResult
if possibleDeclaration
Swift
func resolve(suggestion: SearchResultSuggestion, completion: @escaping (SearchResult?) -> Void)
Parameters
suggestion
suggestion to resolve
completion
completion closure
-
Resolves
SearchResultSuggestion
intoSearchResult
if possibleDeclaration
Swift
func resolve( suggestion: SearchResultSuggestion, retrieveOptions: RetrieveOptions?, completion: @escaping (SearchResult?) -> Void )
Parameters
suggestion
suggestion to resolve
retrieveOptions
Define attribute sets to request additional metadata attributes
completion
completion closure