You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by lavesh <la...@gmail.com> on 2012/10/03 17:04:47 UTC
solr facet !tag on multiple columns
I know this is possible in Solr which do the grouping irrespective of one
values. i.e below line do the grouping based on column1 considering all
filters except the column column1
&facet.field={!ex=column1}column1
now i wana know can i do the grouping in which i consider all filters except
two filters say column1,colun2
like
&facet.field={!ex=column1 !ex=column2}column1
however above is not working.
Pleas help
--
View this message in context: http://lucene.472066.n3.nabble.com/solr-facet-tag-on-multiple-columns-tp4011618.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: solr facet !tag on multiple columns
Posted by Erick Erickson <er...@gmail.com>.
_how_ is it not working? You might review:
http://wiki.apache.org/solr/UsingMailingLists
Best
Erick
On Thu, Oct 4, 2012 at 4:37 AM, lavesh <la...@gmail.com> wrote:
> select?q=*:*&facet=true&facet.zeros=false&fq=column1:(16 31)&&fq=COLUMN2:(6
> 208)&fq={!tag=COLUMN2,column1}COLUMN2:(6)&facet.field={!ex=COLUMN2,column1}COLUMN2&start=0&rows=0
>
> this is not working
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/solr-facet-tag-on-multiple-columns-tp4011618p4011747.html
> Sent from the Solr - User mailing list archive at Nabble.com.
Re: solr facet !tag on multiple columns
Posted by Chris Hostetter <ho...@fucit.org>.
: select?q=*:*&facet=true&facet.zeros=false&fq=column1:(16 31)&&fq=COLUMN2:(6
: 208)&fq={!tag=COLUMN2,column1}COLUMN2:(6)&facet.field={!ex=COLUMN2,column1}COLUMN2&start=0&rows=0
As erick said, you need to elaborate more on what you expect, what you
get, and how they are differnet.
taking a wild shot in the dark, the problems may be...
1) you have an fq using the field "COLUMN2" that isn't taged, so it won't
be excluded
2) you have two fqs that filter results by "COLUMN2" where one is a super
set of hte other, making the first one useless
2) you have an fq using a tag name with a comma in it that looks like a
it could be a cut/paste error from your exclusion list.
maybe something like this is what you really want?...
...&fq={!tag=COL1}column1:(16 31)&&fq={!tag=COL2}COLUMN2:(6 208)&facet.field={!ex=COL1,COL2}COLUMN2
?
-Hoss
Re: solr facet !tag on multiple columns
Posted by lavesh <la...@gmail.com>.
select?q=*:*&facet=true&facet.zeros=false&fq=column1:(16 31)&&fq=COLUMN2:(6
208)&fq={!tag=COLUMN2,column1}COLUMN2:(6)&facet.field={!ex=COLUMN2,column1}COLUMN2&start=0&rows=0
this is not working
--
View this message in context: http://lucene.472066.n3.nabble.com/solr-facet-tag-on-multiple-columns-tp4011618p4011747.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: solr facet !tag on multiple columns
Posted by Yonik Seeley <yo...@lucidworks.com>.
On Wed, Oct 3, 2012 at 11:04 AM, lavesh <la...@gmail.com> wrote:
> I know this is possible in Solr which do the grouping irrespective of one
> values. i.e below line do the grouping based on column1 considering all
> filters except the column column1
>
> &facet.field={!ex=column1}column1
>
> now i wana know can i do the grouping in which i consider all filters except
> two filters say column1,colun2
&facet.field={!ex=column1,column2}column1
-Yonik
http://lucidworks.com