Commit 455d7c4e authored by Pablo Panero's avatar Pablo Panero
Browse files

config: add sorting configuration

parent bac18059
......@@ -130,6 +130,21 @@ RECORDS_REST_FACETS = {
}
}
RECORDS_REST_SORT_OPTIONS = {
'cernsearchqa-webservices': {
'bestmatch': {
'fields': ['-_score'],
'title': 'Best match',
'default_order': 'asc',
},
'mostrecent': {
'fields': ['_updated'],
'title': 'Newest',
'default_order': 'asc',
}
}
}
RECORDS_REST_ELASTICSEARCH_ERROR_HANDLERS = copy.deepcopy(
irr_config.RECORDS_REST_ELASTICSEARCH_ERROR_HANDLERS)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment