UNPKG

@yext/search-core

Version:

Typescript Networking Library for the Yext Search API

21 lines 853 B
/** * Describes the ways a search can be executed besides user input. * * @remarks * Used for search analytics. If a user supplied the search query, do not include a QueryTrigger. * * @example * A Search site may be configured to perform a search for 'What services do you offer?' when the page * loads. Because that query is a default query rather than a user-supplied query, the Initialize QueryTrigger * should be included in the request. * * @public */ export var QueryTrigger; (function (QueryTrigger) { /** Indicates that the query was triggered by a default initial search. */ QueryTrigger["Initialize"] = "initialize"; /** Indicates that the query was suggested by a {@link SpellCheck} response. */ QueryTrigger["Suggest"] = "suggest"; })(QueryTrigger || (QueryTrigger = {})); //# sourceMappingURL=QueryTrigger.js.map