/
KlevuSearchSorting.ts
50 lines (49 loc) · 1.58 KB
/
KlevuSearchSorting.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
export enum KlevuSearchSorting {
/**
* This is the default sort order, which uses a combination of Klevu A.I. and
* your own merchandising configuration to determine the order of the results.
* Please read this article for more information about how Klevu ranks and
* orders the results.
*/
Relevance = "RELEVANCE",
/**
* Sort the results by the salePrice value of each record.
*/
PriceAsc = "PRICE_ASC",
/**
* Sort the results by the salePrice value of each record.
*/
PriceDesc = "PRICE_DESC",
/**
* Sort the results by the name of each record, in alphabetical order.
*/
NameAsc = "NAME_ASC",
/**
* Sort the results by the name of each record, in alphabetical order.
*/
NameDesc = "NAME_DESC",
/**
* Sort the results by each record's average rating, if this data has been
* indexed in your store.
*/
RatingAsc = "RATING_ASC",
/**
* Sort the results by each record's average rating, if this data has been
* indexed in your store.
*/
RatingDesc = "RATING_DESC",
/**
* Sort your records based on their published date. Please see support article
* for important information about sorting by newness.
*/
NewArrivalAsc = "NEW_ARRIVAL_ASC",
/**
* Sort your records based on their published date. Please see support article
* for important information about sorting by newness.
*/
NewArrivalDesc = "NEW_ARRIVAL_DESC",
/**
* Advanced sorting method that requires list of keys to be sorted with. Recommended use `advancedSorting()` modifier instead of specifying this
*/
AdvancedSorting = "ADVANCED_SORT",
}