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
945ab7ba
Commit
945ab7ba
authored
May 29, 2019
by
Pablo Panero
Browse files
config: add type_format and authors facets configuration
parent
a5dacdec
Changes
1
Hide whitespace changes
Inline
Side-by-side
cern_search_rest_api/config.py
View file @
945ab7ba
...
...
@@ -122,10 +122,18 @@ RECORDS_REST_FACETS = {
'aggs'
:
{
'collection'
:
{
'terms'
:
{
'field'
:
'collection'
}
},
'type_format'
:
{
'terms'
:
{
'field'
:
'type_format'
}
},
'authors'
:
{
'terms'
:
{
'field'
:
'_data.authors.exact_match'
}
}
},
'post_filters'
:
{
'collection'
:
terms_filter
(
"collection"
)
'collection'
:
terms_filter
(
"collection"
),
'type_format'
:
terms_filter
(
"type_format"
),
'authors'
:
terms_filter
(
"_data.authors.exact_match"
)
}
}
}
...
...
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