Poq.SDK.Node

Home > @poq/sdk-sfcc > ContentSearchResult > (constructor)

ContentSearchResult.(constructor)

Constructs a new instance of the ContentSearchResult class

Signature:

constructor(params?: {
        count?: number;
        data?: Array<object>;
        hits?: Array<Content>;
        next?: string;
        previous?: string;
        query?: string;
        refinements?: Array<ContentSearchRefinement>;
        selectedRefinements?: {
            [key: string]: string;
        };
        start?: number;
        total?: number;
    });

Parameters

Parameter Type Description
params { count?: number; data?: Array<object>; hits?: Array<Content>; next?: string; previous?: string; query?: string; refinements?: Array<ContentSearchRefinement>; selectedRefinements?: { [key: string]: string; }; start?: number; total?: number; } (Optional)