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

Handle Time values in fields correctly (UTC + ISO 8601)

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: clients - ruby - flare
    • Labels:
      None

      Description

      Here's a patch for automatically converting Time objects in fields to the UTC/ISO 8601 format that Solr can parse.

      Which means this will work:

      connection.add(:id => 1, :created_at => Time.now)

        Attachments

        1. solrb_xml_time.diff
          1 kB
          Coda Hale
        2. solrb_xml_time_with_better_tests.diff
          1 kB
          Coda Hale

          Activity

            People

            • Assignee:
              ehatcher Erik Hatcher
              Reporter:
              codahale Coda Hale
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: