Steven Matthews
Steven Matthews

Reputation: 11325

Apache Solr - facet for empty search in Drupal

I want to have a facet show up on an empty search, but I'm unable to figure out how to do this.

For example, if I am going to www.domain.com/tech, it will only show the facets that actually have values relating to tech. I don't want that, I want all facets to show, no matter if there's 0 entries or 1000 entries.

How do I make even empty facets show?

Upvotes: 0

Views: 290

Answers (1)

Mag
Mag

Reputation: 101

Are you using the apachesolr module? If so go to Home » Administration » Configuration » Search and metadata » Apache Solr search » Pages/Blocks tab.

Under "Advanced Search Page Options" go to the "Behavior On Empty Search" section.

Choose the "Show enabled facets" option that works for you.

Upvotes: 1

Related Questions