Awesome, thank you!

I've implemented this check in my solr app, and it's working beautifully.
Thank you again! I've been consistently impressed with the level of  
support this community gives each other. This email list is better  
than most paid support plans.
+--------------------------------------------------------+
 | Matthew Runo
 | Zappos Development
 | [EMAIL PROTECTED]
 | 702-943-7833
+--------------------------------------------------------+


On Jul 13, 2007, at 5:29 PM, Chris Hostetter wrote:

: 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
counts...
    "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.



-Hoss



Reply via email to