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

Let user override Interval Faceting key with LocalParams

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.10
    • None
    • 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
          Tomas Eduardo Fernandez Lobbe

        Issue Links

          Activity

            People

              erickerickson Erick Erickson
              tflobbe Tomas Eduardo Fernandez Lobbe
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: