Solr
  1. Solr
  2. SOLR-1023

StatsComponent should support dates (and other non-numeric fields)

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 3.5, 4.0-ALPHA
    • Component/s: None
    • Labels:
      None
    • Environment:

      Mac OS 10.5, java version "1.5.0_16"

      Description

      Currently, the StatsComponent only supports single-value numeric fields:

      http://wiki.apache.org/solr/StatsComponent

      trying to use it with a date field I get an exception like: java.lang.NumberFormatException: For input string: "2009-01-27T20:04:04Z"

      trying to use it with a string I get an error 400 "Stats are valid for single valued numeric values."

      For constructing date facets it would be very useful to be able to get the minimum and maximum date from a DateField within a set of documents. In general, it could be useful to get the minimum and maximum from any field type that can be compared, though that's of less importance.

      1. SOLR-1023.patch
        30 kB
        Chris Male
      2. stats-component-path-nightly-2009-10-08.patch
        25 kB
        Mark Holland
      3. SOLR-1023-against-lucene_3_4_0.patch
        32 kB
        Gunnlaugur Thor Briem
      4. SOLR-1023-against-branch_3x.svn.patch
        32 kB
        Gunnlaugur Thor Briem
      5. SOLR-1023.patch
        33 kB
        Gunnlaugur Thor Briem
      6. SOLR-1023.patch
        33 kB
        Ryan McKinley
      7. SOLR-1023.patch
        34 kB
        Ryan McKinley
      8. SOLR-1023-against-branch_3x.svn.patch
        33 kB
        Gunnlaugur Thor Briem
      9. SOLR-1023-CHANGES.TXT.trunk.patch
        0.5 kB
        Gunnlaugur Thor Briem
      10. SOLR-1023-CHANGES.TXT.branch_3x.patch
        0.5 kB
        Gunnlaugur Thor Briem
      11. SOLR-1023-CHANGES.TXT.branch_3x.patch
        0.5 kB
        Gunnlaugur Thor Briem

        Issue Links

          Activity

          Peter Wolanin created issue -
          Shalin Shekhar Mangar made changes -
          Field Original Value New Value
          Description
          Currently, the StatsComponent only supports single-value numeric fields:

          http://wiki.apache.org/solr/StatsComponent

          trying to use it with a date field I get an exception like: java.lang.NumberFormatException: For input string: "2009-01-27T20:04:04Z"

          trying to use it with a string I get an error 400 "Stats are valid for single valued numeric values."

          For constructing date facets it would be very useful to be able to get the minimum and maximum date from a DateField within a set of documents. In general, it could be useful to get the minimum and maximum from any field type that can be compared, though that's of less importance.

          Currently, the StatsComponent only supports single-value numeric fields:

          http://wiki.apache.org/solr/StatsComponent

          trying to use it with a date field I get an exception like: java.lang.NumberFormatException: For input string: "2009-01-27T20:04:04Z"

          trying to use it with a string I get an error 400 "Stats are valid for single valued numeric values."

          For constructing date facets it would be very useful to be able to get the minimum and maximum date from a DateField within a set of documents. In general, it could be useful to get the minimum and maximum from any field type that can be compared, though that's of less importance.

          Shalin Shekhar Mangar made changes -
          Fix Version/s 1.5 [ 12313566 ]
          Fix Version/s 1.4 [ 12313351 ]
          Chris Male made changes -
          Attachment SOLR-1023.patch [ 12416753 ]
          Mark Holland made changes -
          Hoss Man made changes -
          Fix Version/s Next [ 12315093 ]
          Fix Version/s 1.5 [ 12313566 ]
          Hoss Man made changes -
          Fix Version/s 3.2 [ 12316172 ]
          Fix Version/s Next [ 12315093 ]
          Robert Muir made changes -
          Fix Version/s 3.3 [ 12316471 ]
          Fix Version/s 3.2 [ 12316172 ]
          Robert Muir made changes -
          Fix Version/s 3.4 [ 12316683 ]
          Fix Version/s 4.0 [ 12314992 ]
          Fix Version/s 3.3 [ 12316471 ]
          Robert Muir made changes -
          Fix Version/s 3.5 [ 12317876 ]
          Fix Version/s 3.4 [ 12316683 ]
          Gunnlaugur Thor Briem made changes -
          Attachment SOLR-1032-against-lucene_3_4_0.patch [ 12499721 ]
          Gunnlaugur Thor Briem made changes -
          Attachment SOLR-1032-against-lucene_3_4_0.patch [ 12499721 ]
          Gunnlaugur Thor Briem made changes -
          Attachment SOLR-1023-against-lucene_3_4_0.patch [ 12499722 ]
          Gunnlaugur Thor Briem made changes -
          Attachment SOLR-1023-against-trunk.svn.diff [ 12503481 ]
          Gunnlaugur Thor Briem made changes -
          Attachment SOLR-1023-against-branch_3x.svn.diff [ 12503485 ]
          Gunnlaugur Thor Briem made changes -
          Attachment SOLR-1023-against-branch_3x.svn.patch [ 12503486 ]
          Attachment SOLR-1023.patch [ 12503487 ]
          Gunnlaugur Thor Briem made changes -
          Attachment SOLR-1023-against-branch_3x.svn.diff [ 12503485 ]
          Gunnlaugur Thor Briem made changes -
          Attachment SOLR-1023-against-trunk.svn.diff [ 12503481 ]
          Ryan McKinley made changes -
          Attachment SOLR-1023.patch [ 12503647 ]
          Ryan McKinley made changes -
          Attachment SOLR-1023.patch [ 12503648 ]
          Ryan McKinley made changes -
          Assignee Ryan McKinley [ ryantxu ]
          Gunnlaugur Thor Briem made changes -
          Attachment SOLR-1023-against-branch_3x.svn.diff [ 12503722 ]
          Gunnlaugur Thor Briem made changes -
          Attachment SOLR-1023-against-branch_3x.svn.patch [ 12503723 ]
          Gunnlaugur Thor Briem made changes -
          Attachment SOLR-1023-against-branch_3x.svn.diff [ 12503722 ]
          Simon Willnauer made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Gunnlaugur Thor Briem made changes -
          Attachment SOLR-1023-CHANGES.TXT.trunk.patch [ 12503733 ]
          Attachment SOLR-1023-CHANGES.TXT.branch_3x.patch [ 12503734 ]
          Gunnlaugur Thor Briem made changes -
          Attachment SOLR-1023-CHANGES.TXT.branch_3x.patch [ 12503735 ]
          Uwe Schindler made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Hoss Man made changes -
          Link This issue breaks SOLR-2976 [ SOLR-2976 ]

            People

            • Assignee:
              Ryan McKinley
              Reporter:
              Peter Wolanin
            • Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development