[ 
https://issues.apache.org/jira/browse/SOLR-1351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12754542#action_12754542
 ] 

Uri Boness commented on SOLR-1351:
----------------------------------

Another option is to define the id as a local param:

{code}
q=*:*&facet=true&facet.field={!id=category}cat&f.category.facet.sort=true&f.category.facet.limit=20&f.category.facet.mincount=1
{code}

and for multiple configurations:

{code}
q=*:*&facet=true&facet.field={!id=cat1}cat&f.cat1.facet.sort=true&f.cat1.facet.limit=20&f.cat1&facet.mincount=1&facet.field={!id=cat2}cat&f.cat2.facet.sort=false&f.cat2.facet.count=0
{code}

I guess it plays nicer with the new functionality in 1.4



> facet on same field different ways
> ----------------------------------
>
>                 Key: SOLR-1351
>                 URL: https://issues.apache.org/jira/browse/SOLR-1351
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Yonik Seeley
>             Fix For: 1.5
>
>
> There is a general need to facet on the same field in different ways 
> (different prefixes, different filters).  We need a way to express this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to