How to make one facet default?

Events happening in the community are now at Drupal community events on www.drupal.org.
bipin123's picture

I want to set facet value default, when we search it will automatically checked 1st facet.

In my case, I have two facet SM1 and SM2 from that, i want SM1 default checked,

I have tried with following code but code it shows only one facet, other remains hidden.

function searchD_apachesolr_query_alter(DrupalSolrQueryInterface $query,&$params) {

$query->addParam('fq', 'is_book_bid:1104');
}

Pune

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: