function apachesolr_date_gap_drilldown in Apache Solr Search 6
Same name and namespace in other branches
- 5.2 apachesolr.module \apachesolr_date_gap_drilldown()
- 6.2 apachesolr.module \apachesolr_date_gap_drilldown()
Return the next smaller date gap.
Parameters
$gap: A gap.
Return value
The next smaller gap, or NULL if there is no smaller gap.
1 call to apachesolr_date_gap_drilldown()
File
- ./
apachesolr.module, line 1140 - Integration with the Apache Solr search application.
Code
function apachesolr_date_gap_drilldown($gap) {
$drill = array(
'YEAR' => 'MONTH',
'MONTH' => 'DAY',
'DAY' => 'HOUR',
);
return isset($drill[$gap]) ? $drill[$gap] : NULL;
}