if (include_upper && to != null && to.length() != 0)
sb.append("]");
else
sb.append(")");
RandomAccessFilter filter = null;;
String rangeString = sb.toString();
if (facetHandler instanceof ActivityRangeFacetHandler) {
filter = ((ActivityRangeFacetHandler) facetHandler).buildRandomAccessFilter(rangeString, null);
} else {
filter = new FacetRangeFilter(facetHandler, rangeString);
}
DocIdSet docIdSet = filter.getDocIdSet(reader);
return new SenseiDocIdSet(docIdSet, DocIdSetCardinality.exact(filter.getFacetSelectivity(boboReader)), getPlan(field, rangeString));
}
}
}
if(type == null)