Solr
  1. Solr
  2. SOLR-552

DateField does not format Date objects for indexing according to DateField spec

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 1.3
    • Component/s: None
    • Labels:
      None

      Description

      This is related to, but not exactly the same as SOLR-544 and SOLR-470.

      When DateMath was introduced in Solr 1.2 a SimpleDateFormat was introduced for formating Date objects as "internal" String values that (erroneously) include trailing zeros in milliseconds when the number of millis is divisible by 10. (ie: "2008-04-27T23:38:22.120" instead of "2008-04-27T23:38:22.12"

      this makes it incorrect when doing lexigraphical comparisons with dates provided as strings by clients that follow the spec correctly (see SOLR-544)

        Issue Links

          Activity

          Hide
          Hoss Man added a comment -

          linking related issues

          Show
          Hoss Man added a comment - linking related issues
          Hide
          Hoss Man added a comment -

          fixed using patch in SOLR-470

          Committed revision 658003.

          Show
          Hoss Man added a comment - fixed using patch in SOLR-470 Committed revision 658003.
          Hide
          ASF subversion and git services added a comment -

          Commit 1547568 from Yonik Seeley in branch 'dev/trunk'
          [ https://svn.apache.org/r1547568 ]

          SOLR-552: change scale function to use itself as context key instead of source

          Show
          ASF subversion and git services added a comment - Commit 1547568 from Yonik Seeley in branch 'dev/trunk' [ https://svn.apache.org/r1547568 ] SOLR-552 : change scale function to use itself as context key instead of source
          Hide
          ASF subversion and git services added a comment -

          Commit 1547571 from Yonik Seeley in branch 'dev/branches/branch_4x'
          [ https://svn.apache.org/r1547571 ]

          SOLR-552: change scale function to use itself as context key instead of source

          Show
          ASF subversion and git services added a comment - Commit 1547571 from Yonik Seeley in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1547571 ] SOLR-552 : change scale function to use itself as context key instead of source
          Hide
          ASF subversion and git services added a comment -

          Commit 1547581 from Yonik Seeley in branch 'dev/trunk'
          [ https://svn.apache.org/r1547581 ]

          docs: SOLR-552 should be SOLR-5524

          Show
          ASF subversion and git services added a comment - Commit 1547581 from Yonik Seeley in branch 'dev/trunk' [ https://svn.apache.org/r1547581 ] docs: SOLR-552 should be SOLR-5524
          Hide
          ASF subversion and git services added a comment -

          Commit 1547584 from Yonik Seeley in branch 'dev/branches/branch_4x'
          [ https://svn.apache.org/r1547584 ]

          docs: SOLR-552 should be SOLR-5524

          Show
          ASF subversion and git services added a comment - Commit 1547584 from Yonik Seeley in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1547584 ] docs: SOLR-552 should be SOLR-5524

            People

            • Assignee:
              Hoss Man
              Reporter:
              Hoss Man
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development