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

Let user override Interval Faceting key with LocalParams

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.10
    • Component/s: None
    • Labels:
      None

      Description

      This issue is related to Interval Faceting, being worked at SOLR-6216. Right now they key of each interval is the string of the interval as entered in the request. For example:

      [*,20)
      [20,40)
      [40,*]
      

      would output something like

      "facet_intervals":{
            "size":{
              "[*,20)":3,
              "[20,40)":4,
              "[40,*]":9}}
      

      It would be good to be able to override the "key" per interval using local params, for example:

      {!key='small'}[*,20)
      {!key='medium'}[20,40)
      {!key='large'}[40,*]
      

      Would output:

      "facet_intervals":{
            "size":{
              "small":3,
              "medium":4,
              "large":9}}
      

        Attachments

        1. SOLR-6267.patch
          15 kB
          Tomás Fernández Löbbe

          Issue Links

            Activity

              People

              • Assignee:
                erickerickson Erick Erickson
                Reporter:
                tomasflobbe Tomás Fernández Löbbe
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: