facet search API

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

How to make one facet default?

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');
}

Read more
Subscribe with RSS Syndicate content