Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
webservices
cern-search
cern-search-rest-api
Commits
455d7c4e
Commit
455d7c4e
authored
May 28, 2019
by
Pablo Panero
Browse files
config: add sorting configuration
parent
bac18059
Changes
1
Hide whitespace changes
Inline
Side-by-side
cern_search_rest_api/config.py
View file @
455d7c4e
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment