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

SimpleFacets should respect localParams

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.3, 6.0
    • None
    • 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

        1. SOLR-4717-FacetLocalParams.patch
          4 kB
          Ryan McKinley

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: