fix to prevent assertion error in ranking servlet if no vocabularies are

present that could be evaluated
pull/1/head
Michael Peter Christen 10 years ago
parent 9e588944fa
commit 84e2cccab4

@ -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<String, ReversibleScoreMap<String>> facets = sb.index.fulltext().getDefaultConnector().getFacets("*:*", 100, facetfields);
facets.put(CollectionSchema.vocabularies_sxt.getSolrFieldName(), vokcounts);
for (Map.Entry<String, ReversibleScoreMap<String>> facetentry: facets.entrySet()) {

Loading…
Cancel
Save