Browse Source

HUE-2753 [search] Nested text facet should propose the 'show more' option

Romain Rigaux 9 years ago
parent
commit
ce1eadd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      desktop/libs/libsolr/src/libsolr/api.py

+ 1 - 1
desktop/libs/libsolr/src/libsolr/api.py

@@ -335,7 +335,7 @@ class SolrApi(object):
         elif facet['type'] == 'nested':
           _f = {
               'field': facet['field'],
-              'limit': int(facet['properties'].get('limit', 10)) + (1 if facet['widgetType'] == 'facet-widget' else 0),
+              'limit': int(facet['properties'].get('limit', 10)) + (1 if facet['widgetType'] == 'text-facet-widget' else 0),
               'mincount': int(facet['properties']['mincount']),
               'sort': {'count': facet['properties']['sort']}
           }