@Override public List<FacetResult> getAllDims(int topN) throws IOException { if (docValuesFacets == null) { return taxonomyFacets == null ? null : taxonomyFacets.getAllDims(topN); } if (taxonomyFacets == null) return docValuesFacets.getAllDims(topN); final List<FacetResult> facetResultList = taxonomyFacets.getAllDims(topN); facetResultList.addAll(docValuesFacets.getAllDims(topN)); return facetResultList; } }