getSearchFacetingFacetByName($facetName); $tag = ''; if ($facetConfiguration['keepAllOptionsOnSelection'] == 1) { $tag = '{!ex=' . $facetConfiguration['field'] . '}'; } $facetParameters['facet.range'][] = $tag . $facetConfiguration['field']; $start = 'NOW/DAY-1YEAR'; if ($facetConfiguration['dateRange.']['start']) { $start = $facetConfiguration['dateRange.']['start']; } $facetParameters['f.' . $facetConfiguration['field'] . '.facet.range.start'] = $start; $end = 'NOW/DAY+1YEAR'; if ($facetConfiguration['dateRange.']['end']) { $end = $facetConfiguration['dateRange.']['end']; } $facetParameters['f.' . $facetConfiguration['field'] . '.facet.range.end'] = $end; $gap = '+1DAY'; if ($facetConfiguration['dateRange.']['gap']) { $gap = $facetConfiguration['dateRange.']['gap']; } $facetParameters['f.' . $facetConfiguration['field'] . '.facet.range.gap'] = $gap; return $facetParameters; } }