How to retain current filters chosen on facets? On regular search pages there is a checkbox for that.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Mac_Weber’s picture

Category: support » feature
FileSize
2.5 KB

Sending patch to keep current facets.

It adds a checkbox to let the user keep them or not.

Mac_Weber’s picture

Status: Active » Needs review
Mac_Weber’s picture

correct patch

MiroslavBanov’s picture

Issue summary: View changes
Status: Needs review » Needs work

Patch no longer applies.

Robert Castelo’s picture

I've taken some of the code from this patch and used it to create a module:

https://www.drupal.org/project/apachesolr_retain

The option to retain/remove facets wasn't useful for me as I already use the Current Search Links module to display options to remove search keywords and facets, so Apachesolr Retain module always retaind facets.

Would be useful to make this a more generic solution by adding a per view option to display a retain/remove checkbox.

Mac_Weber happy to make you a co-maintainer if you're interested.

MiroslavBanov’s picture

Status: Needs work » Closed (works as designed)

This being a separate module makes sense. Better to keep Apachesolr Views module more focused.