MPISearchManager
public class MPISearchManager
Camara controls manager
-
Add custom query for a Category into the Search index
Declaration
Swift
public func addQuery(query: String, object: MPICategory, weight: Float?, callback: @escaping () -> Void)
Parameters
query
Term to find suggestions for
object
MPICategory
weight
Optional weight to boost the search query
callback
Callback when added successfully
Return Value
Void
-
Add custom query for a Location into the Search index
Declaration
Swift
public func addQuery(query: String, object: MPILocation, weight: Float?, callback: @escaping () -> Void)
Parameters
query
Term to find suggestions for
object
MPILocation
weight
Optional weight to boost the search query
callback
Callback when added successfully
Return Value
Void
-
Add custom query to Search index
Declaration
Swift
public func addQuery(query: String, object: AnyObject, weight: Float?, callback: @escaping () -> Void)
Parameters
query
Term to find suggestions for
object
AnyObject
weight
Optional weight to boost the search query
callback
Callback when added successfully
Return Value
Void
-
Get Search Suggestions Based on a query
Declaration
Swift
public func suggest(query: String, callback: @escaping (MPISearchSuggestions?) -> Void)
Parameters
query
Term to find suggestions for
callback
Callback with suggestions
Return Value
Void
-
Search for
Declaration
Swift
public func search( query: String, callback: @escaping ([MPISearchResultCommon]) -> Void )
Parameters
query
Term to search for
callback
Callback when the query has been added
Return Value
Void