Interface InputSearchQuery

interface InputSearchQuery {
    accountId?: string;
    customRules?: InputSearchRule[];
    explain?: boolean;
    keywords?: InputSearchKeywords;
    products?: InputSearchProducts;
    query?: string;
    redirect?: string;
    rules?: string[];
    segments?: string[];
    sessionParams?: InputSearchQuery;
    time?: number;
}

Hierarchy (view full)

Properties

accountId?: string

Your account ID

customRules?: InputSearchRule[]

Any custom rules that should be added in this search request. These rules are appended to the rule list defined in nosto dashboard

explain?: boolean

(Private key only) Returns scoring information for each object if true. This should only be used for debugging as performance will suffer. If not needed, omit this parameter

Keyword specific parameters

Product specific parameters

query?: string

Search text (raw user input)

redirect?: string
rules?: string[]

List of rule ID's or ID matching patterns with wildcards. Patterns [ global-*, query-* ] should be used here to match all rules created in dashboard

segments?: string[]

Segment ID's user belongs to

sessionParams?: InputSearchQuery
time?: number

(Private key only) Overwrites current time. Used to trigger scheduled rules ahead of schedule