Interface InputSearchPin

Used to change positions of returned products. Pinning rearranges returned product positions, which means that if product is not returned with search results, it won't be pinned.

interface InputSearchPin {
    field?: string;
    position: number;
    value: string[];
}

Properties

Properties

field?: string

Which product field will be used to match value on. If not provided, productId is used

position: number

Where the pinned product will appear on the search page. Starts from 1

value: string[]

If product field matches any of the provided values, pin will be applied. Currently, only exact match of values is supported