I have two categories, CDs and DVDs, doing something like this:

  <requestHandler name="all" class="solr.DisMaxRequestHandler" >
    <lst name="defaults">
      <str name="echoParams">explicit</str>
      <str name="qf">
        disc_name^2
        disc_year
      </str>
      <str name="mm">1</str>
    </lst>
    <lst name="invariants">
      <str name="facet">true</str>
      <str name="facet.field">category</str>
    </lst>
  </requestHandler>
  
  <requestHandler name="cd" class="solr.DisMaxRequestHandler" >
    <lst name="defaults">
      <str name="echoParams">explicit</str>
      <str name="qf">
        disc_name^2
        disc_year

        disc_artist
      </str>
      <str name="mm">1</str>
    </lst>
    <lst name="appends">
      <str name="fq">category:cd</str>
    </lst>
    <lst name="invariants">
      <str name="facet">true</str>
      <str name="facet.field">type</str>
    </lst>
  </requestHandler>

The problem is that when I use the 'cd' request handler, the facet count for
'dvd' provided in the response is 0 because of the filter query used to only
show the 'cd' facet results. How do I retrieve facet counts for both
categories while only retrieving the results for one category?
-- 
View this message in context: 
http://www.nabble.com/Newbie-question%3A-facets-and-filter-query--tp14680213p14680213.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to