public class AutocompleteResult
The result returned by the autocomplete search.
AutocompleteResult object includes an array of segments that correspond to recognized entities.
These entities can be
When the query contains multiple recognized entities, a single autocomplete result may contain multiple segments. For instance, if a user enters the query “Chess Bis,” the autocomplete search result could include 2 segments: a plain text segment containing “Chess” and a category segment with “Bistro.”
The recognized entities present in the autocomplete result.
This property holds an array of
AutocompleteSegmentobjects, which can be
For example the query “To” can return a list of autocomplete results where one result can have the category segment with the query “Tourist Attraction” and another one can have the brand segment with the query “TomTom”.
public let segments: [AutocompleteSegment]