Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-4717

SimpleFacets should respect localParams

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3, 6.0
    • Component/s: None
    • Labels:
      None

      Description

      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:

      &{!key=level3 facet.prefix=3/path/to/folder}path
      &{!key=level2 facet.prefix=2/path/to}path
      &{!key=level1 facet.prefix=1/path}path
      

      This can easily be supported if we use:

      params = SolrParams.wrapDefaults(localParams, orig);
      

      when local params exist

      ------

      We have come a long way from simple facets!

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ryantxu Ryan McKinley
                Reporter:
                ryantxu Ryan McKinley
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: