lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher (JIRA)" <>
Subject [jira] [Updated] (SOLR-358) Implement solr-ruby-specific response capability
Date Sat, 28 Jul 2012 17:33:33 GMT


Erik Hatcher updated SOLR-358:

    Attachment: SOLR-358.patch

Patch that adds DateTime.parse around date strings when ruby.richer_types=true.

This requires that one have the date module loaded (require 'date') to eval the response,
but then provides dates as true DateTime objects in Ruby.
> Implement solr-ruby-specific response capability
> ------------------------------------------------
>                 Key: SOLR-358
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>          Components: clients - ruby - flare
>            Reporter: Erik Hatcher
>            Assignee: Erik Hatcher
>         Attachments: SOLR-358.patch
> Implement solr-ruby-specific Ruby output, such that dates get created as real DateTime
objects (wrap with DateTime.parse(...) is one option), and so that named lists maintain name
and order access cleanly.   This could be a formating option for wt=ruby, or a new writer
type - suggestions welcome.   This would make the richest way to access Solr from Ruby, with
the standard Hash access unaffected and suitable for cases where using an additional library
isn't desired.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message