Solr
  1. Solr
  2. SOLR-750

DateField.parseMath doesn't handle non-existent Z

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Invalid
    • Affects Version/s: 1.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      I've run into situations when trying to use SOLR-540 (wildcard highlight spec) such that if attempts to highlight a date field, I get a stack trace from DateField.parseMath puking because there isn't a "Z" at the end of an otherwise good date-time string. It was very easy to fix the code to make it react gracefully to no Z. Attached is the patch. This bug isn't really related to SOLR-540 so please apply it without waiting for 540.

        Issue Links

          Activity

          David Smiley created issue -
          David Smiley made changes -
          Field Original Value New Value
          Attachment SOLR-750_DateField_no_Z.patch [ 12389402 ]
          Hoss Man made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Invalid [ 6 ]
          David Smiley made changes -
          Link This issue is related to SOLR-540 [ SOLR-540 ]
          David Smiley made changes -
          Resolution Invalid [ 6 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Hoss Man made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Invalid [ 6 ]
          David Smiley made changes -
          Link This issue is related to SOLR-2690 [ SOLR-2690 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              David Smiley
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0.25h
                0.25h
                Remaining:
                Remaining Estimate - 0.25h
                0.25h
                Logged:
                Time Spent - Not Specified
                Not Specified

                  Development