|
|
@@ -224,7 +224,10 @@ OSCAR_SEARCH_FACETS = {
|
|
224
|
224
|
('product_class', {'name': _('Type'), 'field': 'product_class'}),
|
|
225
|
225
|
('rating', {'name': _('Rating'), 'field': 'rating'}),
|
|
226
|
226
|
# You can specify an 'options' element that will be passed to the
|
|
227
|
|
- # SearchQuerySet.facet() call. It's hard to get 'missing' to work
|
|
|
227
|
+ # SearchQuerySet.facet() call.
|
|
|
228
|
+ # For instance, with Elasticsearch backend, 'options': {'order': 'term'}
|
|
|
229
|
+ # will sort items in a facet by title instead of number of items.
|
|
|
230
|
+ # It's hard to get 'missing' to work
|
|
228
|
231
|
# correctly though as of Solr's hilarious syntax for selecting
|
|
229
|
232
|
# items without a specific facet:
|
|
230
|
233
|
# http://wiki.apache.org/solr/SimpleFacetParameters#facet.method
|