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));
}
}