lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Runo <mr...@zappos.com>
Subject Re: Facets that match exactly a filter query..
Date Sat, 14 Jul 2007 00:34:17 GMT
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
  | mruno@zappos.com
  | 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
>


Mime
View raw message