title: Drupal, Solr & Facet Api - Persistent facet links in blocks
body: <p>I need to produce facet block from two vocabularies in my site. I am using Views and a patched version of Views infinite Scroll to generate the search page, using my search index, and I have tweaked everything I could in the facet display settings to see if I could produce the requested results, to no avail. </p>
  
  <p>I do not need keyword searches. I need to show all taxonomy terms in each facets at all times and to be able to select a single criteria at a time from each vocabulary. So, never more thane one selection at a time from each facet block.</p>
  
  <p>Why are you using Solr to store data and generate your search page, if you do not need keyword search and are trying to go against the native working of solr Facets, I hear you say? For performance reasons, it is the reason why I am using Solr to store &amp; serve the results, I have even gone as far as pushing renedered node to the index with the help of the somwhat obscure search_api_solr_view_modes module.</p>
  
  <h3>I could take two separate routes</h3>
  
  <ol>
    <li>Create a custom block, load all the taxonomy terms, alter the output of the term link to point to the view and provide the TID for the View. The active filter data could be obtained from the view arguments. I know how to do that but feel it is the wrong way to go about it, if I am working with Solr, I should be using a facet, not a custom block.</li>
  <li>Build a custom Facet block that has this exact behaviour. After reading a lot of documentation, I git kind of dicouraged with the possibility of doing this simply without having to develop a Facet  plugin, which is kind of out of my league.</li>
  </ol>
  
  <p>Any advice is appreciated. </p>
  
  <p>Here is a screenshot of the interface I have to produce.<br>
  <a href="http://imageshack.com/a/img834/9836/kr0i.png" rel="nofollow" title="Wireframe"><a href="http://imageshack.com/a/img834/9836/kr0i.png" rel="nofollow">http://imageshack.com/a/img834/9836/kr0i.png</a></a></p>
  
  <ul>
    <li>Each taxonomy term has to be persistent, i.e., produce a link event if there are no nodes indexed under this term.</li>
    <li>Selecting a term in one of the vocabularies will deselect previously selected terms</li>
    <li>Clicking on the x next to a term will remove it form the active search criterias.</li>
  </ul>