As reported at #2159883: Date facets not displayed when the configured granularity is larger than the calculated granularity, date facets are not displayed when the minimum granularity set in the Facet's settings page is larger than the granularity, or date gap, than is calculated by facet API.

For example, Let's say you have two nodes, one published on 12-30-2013 and on published on 01-02-2014, and you don't want facets to drill down below the year. If you configure the minimum granularity to a "Year" in the facet's display page, the facet won't display since the calculated granularity is "Day".

The "fix" in the referenced Facet API improves the API so that gaps lower than the minimum granularity are not returned by the API function, however the implementing module's query type plugin for Dates must explicitly pass the setting to the API function in order to fix the bug.

Comments

drunken monkey’s picture

Status: Active » Needs review
StatusFileSize
new891 bytes

Thanks for reporting, Chris! The attached patch should fix the problem.

drunken monkey’s picture

Status: Needs review » Fixed

  • drunken monkey committed 0483636 on 7.x-1.x
    Issue #2305627 by drunken monkey, cpliakas: Fixed date facets not...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.