Optional
breakpointsThe unique ID for your installation found in the HawkSearch admin
Optional
componentsSpecifies component-specific configuration options
Optional
cssSpecifies which styles should be loaded for each component
Optional
customOne or more style sets to be loaded. This can be either a URL to an external stylesheet, the ID of a template
element wrapping around a style
element, or a string containing CSS rules.
Optional
defaultSpecifies whether the default stylesheet should be loaded. This should generally be true except for with completely custom interfaces.
Optional
endpointsSpecifies which endpoints are called by each service
The API used to retrieve product recommendations
'https://recs-dev.hawksearch.net/api/recommendation/v2'
Optional
formattingSpecifies how values should be formatted for different cultures
Optional
culture'en-US'
Optional
currency'USD'
Optional
indexOptional
itemSpecifies how search results should be classified
If the value a search result item is missing a value for the field mapped to type, this value will be assumed.
'content'
Optional
productOptional
placeholderThe URL of an image to be loaded whenever an image fails to load for a search result item
Optional
querySpecifies which query string parameters are used
Optional
disable'disableSpellcheck'
Optional
facet?: stringThis value is used as a prefix before the field name of the facet. For example, with the default value, if the field name is color
, the query string parameter would become facet-color
.
'facet'
Optional
page?: string'page'
Optional
page'pageSize'
Optional
query?: string'query'
Optional
search'searchWithin'
Optional
sort?: string'sort'
Optional
recommendationsMap item attributes to common object properties
Optional
description?: string'longdescription'
Optional
image'image'
Optional
price?: string'price'
Optional
sale'saleprice'
Optional
title?: string'itemname'
Optional
url?: string'url'
Optional
searchMap item attributes to common object properties
Optional
description?: string'longdescription'
Optional
image'image'
Optional
price?: string'price'
Optional
sale'saleprice'
Optional
title?: string'itemname'
Optional
type?: string'type'
Optional
url?: string'url'
Optional
searchThe URL of your search results page. This is used to redirect users after performing a search.
'/search'
Optional
shadowSpecifies whether components should be rendered in the Shadow DOM. This is highly recommended to avoid CSS conflicts.
true
Optional
trackingSpecifies whether user actions should be tracked to provide valuable insights on your search engine performance
true
Optional
urlIf your data contains relative URLs, these values can be prepended to the values to convert them to absolute URLs
Optional
assets?: stringOptional
content?: string
Specifies the minimum window widths that correspond to each breakpoint. This is used determine when certain content items are displayed.
Default Value