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

David Smiley commented on SOLR-4717:
------------------------------------

I recalled this was possible but guessed *incorrectly* it was as simple as 
using the key name for the other parameters, such as:  
{{&facet.field=\{!key=level1}path&f.level1.facet.prefix=whatever}}   but alas.

> SimpleFacets should respect localParams
> ---------------------------------------
>
>                 Key: SOLR-4717
>                 URL: https://issues.apache.org/jira/browse/SOLR-4717
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Ryan McKinley
>            Assignee: Ryan McKinley
>             Fix For: 4.3, 5.0
>
>         Attachments: SOLR-4717-FacetLocalParams.patch
>
>
> In trying to implement http://wiki.apache.org/solr/HierarchicalFaceting I 
> found the need to send multiple prefix facets in the same request on the same 
> field.
> Currently facet params will parse the localParams, but only use them to pick 
> out a name.  We can easily modify things to let localParams override global 
> ones.  For example:
> {code}
> &{!key=level3 facet.prefix=3/path/to/folder}path
> &{!key=level2 facet.prefix=2/path/to}path
> &{!key=level1 facet.prefix=1/path}path
> {code}
> This can easily be supported if we use:
> {code:java}
> params = SolrParams.wrapDefaults(localParams, orig);
> {code}
> when local params exist
> ------
> We have come a long way from *simple* facets!



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to