@searchcraft/core / SearchcraftConfig
The SearchcraftConfig object is used to initialize Searchcraft in your application.
Properties
admProductAdQuantity?
optional
admProductAdQuantity:number
The maximum number of product ads to show for a single search term.
admSub?
optional
admSub:string
The adm sub value.
admTextAdQuantity?
optional
admTextAdQuantity:number
The maximum number of text ads to show for a single search term.
adSource?
optional
adSource:"adMarketplace"
|"Nativo"
|"Custom"
|"None"
Name of the ad source to use.
customAdEndQuantity?
optional
customAdEndQuantity:number
The number of custom ads to render at the end of the search results page.
customAdInterstitialInterval?
optional
customAdInterstitialInterval:number
Renders a custom ad in between search results, at the specified interval.
customAdInterstitialQuantity?
optional
customAdInterstitialQuantity:number
Specifies the number of ads to be rendered in each interstitial in between search results.
customAdStartQuantity?
optional
customAdStartQuantity:number
The number of custom ads to render at the start of the search results page.
customAdTemplate?
optional
customAdTemplate: `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
readKey
readKey:
string
The Index read key provided by Vektron.
searchDebounceDelay?
optional
searchDebounceDelay:number
The amount of delay, in milliseconds, to debounce search requests. Defaults to 0
.
searchResultsPerPage?
optional
searchResultsPerPage:number
The maximum number of results to return per page.
userId?
optional
userId:string
A unique user identifier for the end user.