Skip to content

Commit

Permalink
fix: Fix avg/sum search facets
Browse files Browse the repository at this point in the history
  • Loading branch information
NickolausDS committed Sep 2, 2021
1 parent 3485bf8 commit 49a868a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion globus_portal_framework/gsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ def prepare_search_facets(facets):
raise ValueError('Each facet must define at minimum "field_name"')
cfacet['name'] = generate_globus_search_facet_name(facet, idx)
cfacet['type'] = cfacet.get('type', 'terms')
if cfacet['type'] != 'date_histogram':
if cfacet['type'] not in ['date_histogram', 'sum', 'avg']:
cfacet['size'] = cfacet.get('size', 10)
cleaned_facets.append(cfacet)
return cleaned_facets
Expand Down

0 comments on commit 49a868a

Please sign in to comment.