Option to list items in the Summary when there are no results.

Created on 22 October 2018, over 5 years ago
Updated 25 October 2018, over 5 years ago

In some cases you may want to see an item in the summary even when it has no results so you can delete it from the query.

I have a scenario where I can click items but end up without results (because there are no results for the query) so the summary is empty. So I can no longer click remove item in the summary.

Scenario:
- Facet 1: Bike OR Walk
- Facet 2: Outdoor

I have results for Bike & Outdoor but not for Walk & Outdoor.

Now I can select Bike, Walk, Outdoor and then unselect Walk. This results in, a query "Walk & Outdoor" which has no results.
Because there are no results I no longer see the links in the summary to remove "Walk" or remove "Outdoor."

This may be an issue in search_api_solr as a fix has been provided for search_api_db in https://www.drupal.org/project/search_api/issues/2994022 β†’

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium mpp

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.

  • πŸ‡ΊπŸ‡ΈUnited States robpowell Boston

    I found myself in this exact situation due to rendering the summary via a block. The block was added via a attach render entity in the view's header. Once I changed this to the view's facet summary, the facet summary populated even if the selection rendered a no result.

Production build 0.69.0 2024