AutocompleteSegment

fun AutocompleteSegment(type: AutocompleteMatchType, category: Category? = null, brand: Brand? = null, plainText: String = "", matchedAlternativeName: String = "")

Parameters

type

The type of entity detected.

category

This is specific to category segment type. Can be used to restrict the results of other search endpoints to Points Of Interest (POI) from specific categories. See the categorySet parameter in fuzzy search API.

brand

The brand name. The Brand.name field can be used to restrict results of other search endpoints to Points Of Interest (POI) for specified brands. See the brandSet parameter in in fuzzy search API.

plainText

Plain text match. It is available only if match type is AutocompleteMatchType.PlainText

matchedAlternativeName

(Optional) category segment type. Present only if a part of the user query matches an alternative name instead of a primary name. For example, for the input query "petrol station" the category segment value is "gas station" and the matchedAlternativeName is "petrol station".