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 "Yonik Seeley (JIRA)" <ji...@apache.org> on 2008/12/13 22:28:44 UTC

[jira] Updated: (SOLR-911) multi-select facets

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

Yonik Seeley updated SOLR-911:
------------------------------

    Attachment: SOLR-911.patch

OK, here's a prototype (still needs string-constants, distrib support, and tests) that implements support for multi-select facets by allowing the tagging of any query via the existing "localParams" syntax.  It adds localParams support to facet commands like facet.field to allow exclusion of certain filters.

fq={!tag=typefilter}type:pdf&facet.field={!ex=typefilter}myfield

both tag and ex may be a comma separated list to allow storing under different tags and selecting multiple tags.

The localParams method seems preferable since it can be arbitrarily extended for other controls, and already existed when parsing queries.  

This patch also adds the ability to specify a different output name/key... useful for complex facet queries:

facet.query={!key=foo}rng:[1 TO 2] OR rng:[5 TO 9]
will cause the results to come back under a key of "foo" rather than "rng:[1 TO 2] OR rng:[5 TO 9]"


> multi-select facets
> -------------------
>
>                 Key: SOLR-911
>                 URL: https://issues.apache.org/jira/browse/SOLR-911
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>            Reporter: Yonik Seeley
>             Fix For: 1.4
>
>         Attachments: SOLR-911.patch
>
>
> plumbing to support the selection of multiple constraints in a facet

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