Optional
autocompleteOptional
decodeOptional
endpointOptional
minSpecifies the minimum length for a query to trigger an autocomplete recommendations request.
1
Optional
recommendationsSpecifies whether autocomplete recommendations (autocomplete without entering a query - "instant engage") is enabled
false
Optional
breakpointsSpecifies the minimum window widths that correspond to each breakpoint. This is used determine when certain content items are displayed.
{
mobile: undefined,
tablet: 740,
desktop: 990
}
The 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
debugOptional
fieldMap item attributes to common object properties
Optional
formattingSpecifies how values should be formatted for different cultures
Optional
cultureOptional
currencyOptional
indexSpecify an index to query rather than the default
Optional
placeholderThe URL of an image to be loaded whenever an image fails to load for a search result item
Optional
recommendationsOptional
endpointOptional
searchOptional
decodeWhether to automatically URI decode facet selection values. Runs recursively until value is fully decoded. For example, Test%2520Value
would become Test Value
.
true
Optional
decodeWhether to automatically URI decode the search query value. Runs recursively until value is fully decoded. For example, Test%2520Value
would become Test Value
.
true
Optional
endpointOptional
facetThe prefix for values sent to the API when excluding a facet. This is only modified in rare circumstances where the project has facet values starting with a hyphen.
'-'
Optional
itemSpecifies how search results should be classified
If the value a search result item is missing a value for the field mapped to fieldMappings.type, this value will be assumed.
'content'
Optional
productOptional
kSpecifies a kValue for Concept and Image search
Optional
querySpecifies which query string parameters are used
Optional
disableOptional
page?: stringOptional
pageOptional
query?: stringOptional
requestSets RequestType field to toggle between Keyword search, Image search or Concept search
'DefaultSearch'
Optional
searchOptional
sort?: stringOptional
url?: stringThe URL of your search results page. This is used to redirect users after performing a search.
'/search'
Optional
seoOptional
title?: { Optional
prefix?: stringValue prepended to title returned from API
Optional
suffix?: stringValue appended to title returned from API
Optional
shadowSpecifies whether components should be rendered in the Shadow DOM. This is highly recommended to avoid CSS conflicts.
true
Optional
trackingOptional
enabled?: booleanSpecifies whether user actions should be tracked to provide valuable insights on your search engine performance
true
Optional
endpointOptional
urlIf your data contains relative URLs, these values can be prepended to the values to convert them to absolute URLs
Optional
assets?: stringOptional
content?: stringOptional
variantsOptional
baseWhen true
, specifies that facet counts should be calculated based on the number of child items rather than the number of parent items
false
Optional
enabled?: booleanOptional
fieldMap item attributes to common object properties
Optional
fieldWhen specified, this prefix is removed from the attributes
collection on variant items. For example, if a value of 'child_'
is used and HawkSearch returns a field named 'child_color'
, it will be transformed to 'color'
.
Optional
trackWhen true
, specifies that tracking should use the ID of the selected variant rather than the ID of the parent
false
Whether to automatically URI decode the search query value. Runs recursively until value is fully decoded. For example,
Test%2520Value
would becomeTest Value
.Default Value
true