We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7ea65d6 + 181c3c1 commit 9b02755Copy full SHA for 9b02755
oscar_elasticsearch/search/settings.py
@@ -99,7 +99,12 @@
99
SORT_BY_MAP_SEARCH = getattr(
100
settings,
101
"OSCAR_ELASTICSEARCH_SORT_BY_MAP_SEARCH",
102
- {NEWEST: "-date_created", POPULARITY: "-popularity"},
+ {
103
+ NEWEST: "-date_created",
104
+ POPULARITY: "-popularity",
105
+ TITLE_A_TO_Z: "title.raw",
106
+ TITLE_Z_TO_A: "-title.raw",
107
+ },
108
)
109
110
SORT_BY_CHOICES_CATALOGUE = getattr(
@@ -126,8 +131,8 @@
126
131
POPULARITY: "-popularity",
127
132
PRICE_HIGH_TO_LOW: "-price",
128
133
PRICE_LOW_TO_HIGH: "price",
129
- TITLE_A_TO_Z: "title",
130
- TITLE_Z_TO_A: "-title",
134
135
136
},
137
138
0 commit comments