How to make one facet default?
Posted by bipin123 on September 2, 2015 at 12:52pm
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');
}