lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: Facets that match exactly a filter query..
Date Sat, 14 Jul 2007 00:29:38 GMT

: What do you mean, compare the counts?
: Do you mean compare the number of results for the facet to the total
: number of results found, and if they're the same, don't show it?

bingo ... if you know that the current request resulted in 1,278
documents, and you have a facet.field called "style" with the following constraints
    "cool"   => 78
    "hip"    => 1278
    "urban"  => 1278
    "sporty" => 634

...then you can safely not offer the user the option of adding a filter on
style:hip or style:urban since doing so won't affect the result set.

it doesn't matter if hte user already applied a filter on "style:hip" or
"style:urban" hat matters is that in the context of whatever filters are
already applied, there is not value in trying ot filter on them now.


View raw message