SearchManager
Search engine. The main entry point for the reference API.
Hashable
ISearchManager
public static func == (lhs: SearchManager, rhs: SearchManager) -> Bool
Returns a Boolean value indicating whether two values are equal.
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
hasher
Hasher
Hasher to use when combining the components of this instance.
public static func createOnlineManager(
context: Context
) throws -> SearchManager
Creates a search engine working online.
public static func createOfflineManager(
context: Context
) throws -> SearchManager
Creates a search engine working with preloaded data.
public static func createSmartManager(
context: Context
) throws -> SearchManager
Creates a search engine working online or with preloaded data depending on the availability of internet connection.
public func suggest(
query: SuggestQuery
) -> Future<SuggestResult>
Gets hints that match this query.
query
public func search(
query: SearchQuery
) -> Future<SearchResult>
Gets the directory objects that match the given query.
query
public func searchById(
id: String
) -> Future<DirectoryObject?>
Get a directory object by its string identifier.
id
public func searchByDirectoryObjectId(
objectId: DgisObjectId
) -> Future<DirectoryObject?>
Gets a directory object by its identifier.
objectId
public func searchByIdWithLocale(
id: String,
locale: Locale?
) -> Future<DirectoryObject?>
Gets a directory objecy by a string indentifier with the specified locale.
public func searchByDirectoryObjectIdWithLocale(
objectId: DgisObjectId,
locale: Locale?
) -> Future<DirectoryObject?>
Gets a directory objecy by an indentifier with the specified locale.