SearchViewConfigurator
Interface for setting up search in SearchLayout.
fun setSuggestorType(suggestorType: SuggestorType): Unit
Sets the type of the suggester. Default: SuggestorType.GENERAL
fun setSortingType(sortingType: SortingType): Unit
Sets the type of the search results. Default: SortingType.BY_RELEVANCE
fun setAllowedSearchResultTypes(allowedSearchResultTypes: List<ObjectType>): Unit
Sets the object types of ObjectType allowed in the search query result. Default: all except ObjectType.ROUTE
fun setAllowedSuggestedTypes(allowedSuggestedTypes: List<SuggestedType>): Unit
Sets the object types of SuggestedType allowed in the suggests. Default: all except SuggestedType.ROUTE.
fun setPageSize(size: Int): Unit
Sets limit on the number of hints in suggest and of search results. Valid values range from 1 to 50. Default: 10.
fun setSpatialRestrictions(spatialRestriction: List?<GeoPoint>): Unit
Set the search area limit in the form of a polygon. The first and the last points of the polygon do not have to match Default: missing.
fun setAreaOfInterest(rect: GeoRect?): Unit
Sets a rectangular area of interest in geographic coordinates. Default: missing.
fun setSearchType(type: SearchType): Unit
Sets the SearchType type of the search engine. Possible options and default values depend on the SDK delivery type. See SearchType and SearchOptions for details.
fun setLocationProvider(provider: LocationService?): Unit
Sets a geolocation provider to determine the distance to an object in the search results. Not set by default.