I want to set facet value default, when we search keyword in search box, after that it shows facet value and respective results. So in my case i have two facets,book 1 and book 2. I want book 1 facet default selected.

Comments

bipin123 created an issue. See original summary.

eugene.ilyin’s picture

I wrote a not about it http://www.eilyin.name/note/how-set-value-facet-default-drupal-54
I think you can easy adapt it for your requirements.

eugene.ilyin’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

Christian Le Fournis’s picture

The solution posted does not actually filter the result, it just enables the checkbox. How can we set a default facet field to pre-filter the result?
Thank you.