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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • clients - ruby - flare
    • 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_with_better_tests.diff
          1 kB
          Coda Hale
        2. solrb_xml_time.diff
          1 kB
          Coda Hale

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: