also take a look at:
http://wiki.apache.org/solr/HierarchicalFaceting
+ SOLR-64, SOLR-792
+ http://markmail.org/message/jxbw2m5a6zq5jhlp

Regards,
Peter.

> Take a look at "Mastering the Power of Faceted Search with Chris
> Hostetter"
> (http://www.lucidimagination.com/solutions/webcasts/faceting).  I think
> there's an example of what you're looking for there.
>
> Ephraim Ofir
>
> -----Original Message-----
> From: Otis Gospodnetic [mailto:otis_gospodne...@yahoo.com] 
> Sent: Tuesday, October 05, 2010 5:44 AM
> To: solr-user@lucene.apache.org
> Subject: Re: multi level faceting
>
> Hi,
>
> I *think* this is not what Vincent was after.  If I read the suggestions
>
> correctly, you are saying to use &fq=x&fq=y -- multiple fqs.
> But I think Vincent is wondering how to end up with something that will
> let him 
> create a UI with multi-level facets (with a single request), e.g.
>
> Footwear (100)
>   Sneakers (20)
>     Men (1)
>     Women (19)
>
>   Dancing shoes (10)
>     Men (0)
>     Women (10)
> ...
>
> If this is what Vincent was after, I'd love to hear suggestions myself.
> :)
>
> Otis
> ----
> Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
> Lucene ecosystem search :: http://search-lucene.com/
>
>
>
> ----- Original Message ----
>   
>> From: Jason Brown <jason.br...@sjp.co.uk>
>> To: solr-user@lucene.apache.org
>> Sent: Mon, October 4, 2010 11:34:56 AM
>> Subject: RE: multi level faceting
>>
>> Yes, by adding fq back into the main query you will get results
>>     
> increasingly  
>   
>> filtered each time.
>>
>> You may run into an issue if you are displaying facet  counts, as the
>>     
> facet 
>   
>> part of the query will also obey the increasingly filtered  fq, and so
>>     
> not 
>   
>> display counts for other categories anymore from the chosen facet
>>     
> (depends if 
>   
>> you need to display counts from a facet once the first value from  the
>>     
> facet has 
>   
>> been chosen if you get my drift). Local params are a way to deal  with
>>     
> this by 
>   
>> not subjecting the facet count to the same fq restriction (but
>>     
> allowing the 
>   
>> search results to obey it).
>>
>>
>>
>> -----Original  Message-----
>> From: Nguyen, Vincent (CDC/OD/OADS) (CTR) [mailto:v...@cdc.gov]
>> Sent: Mon 04/10/2010  16:34
>> To: solr-user@lucene.apache.org
>> Subject:  RE: multi level faceting
>>
>> Ok.  Thanks for the quick  response.
>>
>> Vincent Vu Nguyen
>> Division of Science Quality and  Translation
>> Office of the Associate Director for Science
>> Centers for  Disease Control and Prevention (CDC)
>> 404-498-6154
>> Century Bldg  2400
>> Atlanta, GA 30329 
>>
>>
>> -----Original Message-----
>> From:  Allistair Crossley [mailto:a...@roxxor.co.uk] 
>> Sent: Monday, October  04, 2010 9:40 AM
>> To: solr-user@lucene.apache.org
>> Subject:  Re: multi level faceting
>>
>> I think that is just sending 2 fq facet queries  through. In Solr PHP
>>     
> I
>   
>> would do that with, e.g.
>>
>> $params['facet'] =  true;
>> $params['facet.fields'] = array('Size');
>> $params['fq'] =>  array('sex' => array('Men', 'Women'));
>>
>> but yes i think you'd have to  send through what the current facet
>>     
> query
>   
>> is and add it to your next  drill-down
>>
>> On Oct 4, 2010, at 9:36 AM, Nguyen, Vincent (CDC/OD/OADS)  (CTR)
>>     
> wrote:
>   
>>     
>>> Hi,
>>>
>>>
>>>
>>> I was wondering  if there's a way to display facet options based on
>>> previous facet  values.  For example, I've seen many shopping sites
>>>       
>> where
>>     
>>> a user  can facet by "Mens" or "Womens" apparel, then be shown
>>>       
> "sizes"
>   
>> to
>>     
>>>  facet by (for Men or Women only - whichever they chose).  
>>>
>>>
>>>
>>> Is this something that would have to be handled at the  application
>>> level?
>>>
>>>
>>>
>>> Vincent Vu  Nguyen
>>>
>>>
>>>
>>>
>>>
>>>       
>>
>>
>>
>> If you  wish to view the St. James's Place email disclaimer, please
>>     
> use the 
>   
>> link  below
>>
>> http://www.sjp.co.uk/portal/internet/SJPemaildisclaimer
>>
>>     
>   

Reply via email to