diff --git a/htroot/RankingSolr_p.java b/htroot/RankingSolr_p.java index f543fb75a..2bba0a23b 100644 --- a/htroot/RankingSolr_p.java +++ b/htroot/RankingSolr_p.java @@ -201,7 +201,7 @@ public class RankingSolr_p { prop.putHTML("boosthint_vocabulariesvoclogcounts", voclogcountsFields.toString()); String[] facetfields = ff.toArray(new String[ff.size()]); int fc = 0; - try { + if (facetfields.length > 0) try { LinkedHashMap> facets = sb.index.fulltext().getDefaultConnector().getFacets("*:*", 100, facetfields); facets.put(CollectionSchema.vocabularies_sxt.getSolrFieldName(), vokcounts); for (Map.Entry> facetentry: facets.entrySet()) {