TomTomSDKSearchHybrid
-
Hybrid Search module wraps online and offline search modules that conform to the Search protocol. It orchestrates how the SDK uses the two services to improve the reliability of the Search functionality.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public final class HybridSearch : Search
-
Errors that may occur during a hybrid search.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum HybridSearchError : Error, Equatable
-
This is the factory for accessing the implementations for the Hybrid Search APIs provided via the
Search
protocol. The Hybrid Search module wraps online and offline search modules that conform to theSearch
protocol. It orchestrates how the SDK uses the two services to improve the reliability of the Search functionality.An example usage:
// Create and store a Hybrid Search instance. self.search = try HybridSearchFactory.create(apiKey: "YOUR_API_KEY", store: store) // Perform a search operation. let options = SearchOptions(query: "pizza") search.search(options) { result in /* Here you do processing */ }
Note
for more details, see theSearch
documentation.Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum HybridSearchFactory