Date facets not displaying

Created on 13 January 2023, over 1 year ago
Updated 15 January 2023, over 1 year ago

I recently integrated facets into a site but while every other facet was working fine, the facet for "post date" didn't. On further investigation, I discovered that any facet that was related to date wasn't working.

Steps to reproduce

Install Facet, Create Facets and enable them in the block page.

Proposed resolution

There is an error in apachesolr/plugins/facetapi/query_type_date.inc while checking for date.
$raw_data['gap'] = (isset($response->facet_counts->facet_dates->{$this->facet['field']}->gap)) ?? FACETAPI_DATE_MINUTE;
It assigns "true" to "gap" thereby preventing the plugin from working properly.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: duplicate

Version

1.12

Component

Code

Created by

πŸ‡³πŸ‡¬Nigeria tevli

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.69.0 2024