lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralf Heyde <ralf.he...@zalando.de>
Subject Re: Solr - Multiple Facet Exclusion for the same Field
Date Mon, 22 Jul 2013 09:53:51 GMT
Just found it.
Use {!ex=c key=ckey} ...

On 07/22/2013 11:35 AM, Ralf Heyde wrote:
> Hello,
>
> i need different (multiple) Facet exclusions for the same field. This 
> approach works:
>
> http://server/core/select/?q=*:*
>  &fq={!tag=b}brand:adidas
>  &fq={!tag=c}color:red
>  &facet.field={!ex=b}brand
>  &facet.field={!ex=c}brand
>  &facet.field={!ex=b,c}brand
>  &facet.field=brand
>  &facet=true&facet.mincount=1
>
> then my result provides different facets for "brand".
> BUT: is there any possibility to get to know, which exclusion fits to 
> which facet? Is there something like "as" in SQL (e.g. 
> facet.field={!ex=b as BrandB}brand) ?
> We are using Solr 3.6.
>
> Hopefully this is a feature, not a bug, which we are using.
>
> Thanks in advance.
> Ralf
>
>


Mime
View raw message