Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.43 KB

search-core.autocompleteresult.md

File metadata and controls

25 lines (17 loc) · 1.43 KB

Home > @yext/search-core > AutocompleteResult

AutocompleteResult interface

An autocomplete suggestion.

Signature:

export interface AutocompleteResult 

Properties

Property Type Description
filter? FieldValueFilter (Optional) A filter applied to the autocomplete response.
key? string (Optional) The fieldId which corresponds to the AutocompleteResult value.
matchedSubstrings? { length: number; offset: number; }[] (Optional) An array of substrings which overlap with the autocomplete input.
relatedItem? Result (Optional) An entity that corresponds to the autocomplete result.
value string The value of an autocomplete suggestion.
verticalKeys? string[] (Optional) Any vertical keys associated with a prompt. This only shows up on universal autocomplete requests.