You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Jon Baer <jo...@gmail.com> on 2008/07/07 17:35:50 UTC

Filter query + holding previous Facet query counts

Hi,

Is there an easy way to use fq to filter down but retain the overall  
facet query counts?  I can't seem to find how to accomplish this but  
seems like a common item needed for navigating though a result set.  I  
need to do this w/o holding a session and the counts always seem to  
reflect the current fq instead of the overall lookup.

Thanks.

- Jon

Re: Filter query + holding previous Facet query counts

Posted by Chris Hostetter <ho...@fucit.org>.
: Is there an easy way to use fq to filter down but retain the overall facet
: query counts?  I can't seem to find how to accomplish this but seems like a
: common item needed for navigating though a result set.  I need to do this w/o
: holding a session and the counts always seem to reflect the current fq instead
: of the overall lookup.

Nope.  the facet counts are always with respect to the DocSet that the 
returned DocList is a "slice" of.

I imagine a subclass of FacetComponent that ignored the fq params when 
computing facet counts would be fairly simple to write.



-Hoss