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

Support DateRangeField in JSON Facet API

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 6.2.1
    • 8.5
    • faceting
    • None

    Description

      While trying to do faceting on a daterangefield, I noticed that only the SimpleFacets system worked - JSON facets did not allow it. It was expecting any range facet to be done on a TrieField, which DateRangeField is not. I updated the code to simply allow DateRangeField through as well, and this appears to work just fine, so I'm submitting a patch so this can be included in the next release.

      Haven't submitted a patch before so please forgive me if I screwed up, tried to follow directions as best I could.

      Attachments

        1. SOLR-10567.patch
          7 kB
          Munendra S N
        2. SOLR-10567.patch
          4 kB
          Stephen Weiss

        Activity

          People

            munendrasn Munendra S N
            jove4015 Stephen Weiss
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: