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

Facet aggregation functions on date fields return numbers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 7.1
    • faceting
    • None

    Description

      When you use the JSON faceting API and you want to use aggregate functions on date fields, you get numbers instead.
      e.g.

      json.facet= {
      "test": {"type": "query", "q": "*:*", "facet": {"first": "min(date)", "last": "max(date)"}}
      }

      Where date has a date type, you'll get

      {"count":15, "first":1.361525185E12, "last":1.387552939E12}

      It'd be nice to get the results in a standard TZ format.

      Someone already described this issue here:
      http://lucene.472066.n3.nabble.com/min-max-on-date-fields-using-JSON-facets-td4288736.html
      But I haven't found any JIRA ticket linked to this problem.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              The_matrixme Maxime Darçot
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: