facet search API

We encourage users to post events happening in the community to the community events group on https://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