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

SolrJ's JsonFacetingResponse mishandles stat-facets on date fields

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.7, 8.0, master (9.0)
    • Fix Version/s: 8.3
    • Component/s: SolrJ
    • Labels:
      None

      Description

      SolrJ has some classes which simplify access to JSON Faceting responses. These classes parse the response and maintain a Map of facet names to their values. Currently, this section has a bug where it only records stat facets in this Map if the facet value is a Number. (When writing this code, I mistakenly assumed that stat functions could be used on date fields).

      We should fix JsonFacetingResponse so that it handles date-based facets correctly.

        Attachments

        1. SOLR-13417.patch
          10 kB
          Munendra S N

          Activity

            People

            • Assignee:
              munendrasn Munendra S N
              Reporter:
              gerlowskija Jason Gerlowski
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: