ProductSearchSortingOption
Sorting option available in the getFacet endpoint when the productSearch search API is used.
interface ProductSearchSortingOption {
field: string;
fieldType?: string;
id: string;
language?: string;
mode?: "avg" | "max" | "min" | "sum";
order: "asc" | "desc";
}Properties
| Name | Required | Type | Description |
|---|---|---|---|
field | Required | string | |
fieldType | Optional | string | |
id | Required | string | Value of the sort parameter of the getFacet endpoint |
language | Optional | string | |
mode | Optional | "avg" | "max" | "min" | "sum" | |
order | Required | "asc" | "desc" |