You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Uri Boness (JIRA)" <ji...@apache.org> on 2009/09/13 18:03:57 UTC

[jira] Updated: (SOLR-1351) facet on same field different ways

     [ https://issues.apache.org/jira/browse/SOLR-1351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Uri Boness updated SOLR-1351:
-----------------------------

    Attachment: SOLR-1351.patch

Took the approach as described above. The only difference is that instead of the "id" parameter I reused the "key" parameter already supported by this component. The idea is that now, when the "key" local param is specified, all the specific facet params need to use the key instead of the field name.

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

This not only applies to simple filed facets but also to date facets:

{code}
q=*:*&facet=true&facet.date={!key=foo}bday&f.foo.facet.date.start=1976-07-01T00:00:00.000Z&
f.foo.facet.date.end=1976-07-01T00:00:00.000Z+1MONTH&f.foo.facet.date.gap=+1DAY&
f.foo.facet.date.other=all&facet.date={!key=bar}bday&
f.bar.facet.date.end=1976-07-01T00:00:00.000Z+7DAY&f.bar.facet.date.gap=+1DAY&
{code}

> 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
>
>         Attachments: SOLR-1351.patch
>
>
> 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.