|
|
@@ -468,14 +468,13 @@ def _create_facet(collection, user, facet_id, facet_label, facet_field, widget_t
|
|
|
if widget_type in ('tree-widget', 'heatmap-widget', 'map-widget'):
|
|
|
properties['mincount'] = 1
|
|
|
properties['facets'] = []
|
|
|
+ properties['facets_form'] = {'field': '', 'mincount': 1, 'limit': 5}
|
|
|
|
|
|
if widget_type == 'map-widget':
|
|
|
properties['scope'] = 'world'
|
|
|
- properties['facets_form'] = {'field': '', 'mincount': 1, 'limit': 1}
|
|
|
properties['limit'] = 100
|
|
|
else:
|
|
|
properties['scope'] = 'stack' if widget_type == 'heatmap-widget' else 'tree'
|
|
|
- properties['facets_form'] = {'field': '', 'mincount': 1, 'limit': 5}
|
|
|
|
|
|
return {
|
|
|
'id': facet_id,
|