Interface InputSearchQueryWithFields

interface InputSearchQueryWithFields {
    accountId?: string;
    customRules?: InputSearchRule[];
    explain?: boolean;
    keywords?: {
        fields?: string[];
    } & InputSearchKeywords;
    products?: {
        fields?: string[];
    } & 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

keywords?: {
    fields?: string[];
} & InputSearchKeywords

Keyword specific parameters

Type declaration

  • Optionalfields?: string[]

    The fields to return in the response.

products?: {
    fields?: string[];
} & InputSearchProducts

Product specific parameters

Type declaration

  • Optionalfields?: string[]

    The fields to return in the response.

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