SearchcraftConfig
The SearchcraftConfig object is used to initialize Searchcraft in your application.
Properties
adContainerRenderedDebounceDelay?
optionaladContainerRenderedDebounceDelay:number
The amount of debounce delay to add before calling the ad_container_rendered event
admProductAdQuantity?
optionaladmProductAdQuantity:number
The maximum number of product ads to show for a single search term.
admSub?
optionaladmSub:string
The adm sub value.
admTextAdQuantity?
optionaladmTextAdQuantity:number
The maximum number of text ads to show for a single search term.
adSource?
optionaladSource:"adMarketplace"|"Nativo"|"Custom"|"None"
Name of the ad source to use.
customAdEndQuantity?
optionalcustomAdEndQuantity:number
The number of custom ads to render at the end of the search results page.
customAdInterstitialInterval?
optionalcustomAdInterstitialInterval:number
Renders a custom ad in between search results, at the specified interval.
customAdInterstitialQuantity?
optionalcustomAdInterstitialQuantity:number
Specifies the number of ads to be rendered in each interstitial in between search results.
customAdStartQuantity?
optionalcustomAdStartQuantity:number
The number of custom ads to render at the start of the search results page.
customAdTemplate?
optionalcustomAdTemplate:CustomAdTemplateRenderFunction
A callback function responsible for rendering the custom ad containers.
endpointURL
endpointURL:
string
Host IP Address and port number configured and created using Vektron
index
index:
string[]
Name or names of search indices configured using Vektron. Given as an array of strings
nativoAdClassName?
optionalnativoAdClassName:string
The class name for nativo ad containers.
nativoAdEndQuantity?
optionalnativoAdEndQuantity:number
The number of custom ads to render at the end of the search results page.
nativoAdInterstialStartIndex?
optionalnativoAdInterstialStartIndex:number
Specify how many normal search results to render before rendering the first interstitial ad grouping.
nativoAdInterstitialInterval?
optionalnativoAdInterstitialInterval:number
Renders a custom ad in between search results, at the specified interval.
nativoAdInterstitialQuantity?
optionalnativoAdInterstitialQuantity:number
Specifies the number of ads to be rendered in each interstitial in between search results.
nativoAdStartQuantity?
optionalnativoAdStartQuantity:number
The number of custom ads to render at the start of the search results page.
nativoPlacementId?
optionalnativoPlacementId:number
The placement id to use for Nativo ads.
readKey
readKey:
string
The Index read key provided by Vektron.
searchDebounceDelay?
optionalsearchDebounceDelay:number
The amount of delay, in milliseconds, to debounce search requests. Defaults to 0.
searchResultsPerPage?
optionalsearchResultsPerPage:number
The maximum number of results to return per page.
userId?
optionaluserId:string
A unique user identifier for the end user.