[
https://issues.apache.org/jira/browse/SOLR-4717?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yonik Seeley updated SOLR-4717:
-------------------------------
Description:
eIn 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!
was:
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!
> 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
> Attachments: SOLR-4717-FacetLocalParams.patch
>
>
> eIn 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]