modifications to use frange for facet queries