[ https://issues.apache.org/jira/browse/SOLR-449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12555881#action_12555881 ]
Erik Hatcher commented on SOLR-449: ----------------------------------- I've looked around for constants for those too, and asked around to several Ruby experts, and sure enough no such constants exist for Infinity or NaN. But come on, Hoss, don't throw in the towel on Ruby just for that - there are plenty of other great features of Ruby to more than make up for this weird omission of those constants. There are methods on Float that allow you to ask if something is infinite or not a number. Hoss's point about outputting code is not that far-fetched and is actually along the lines of what I proposed in SOLR-358 - having a special Ruby response writer mode that output something interpretable by solr-ruby that took care of all data type / ordering issues. For now the divide-by-zero hack is fine I suppose. > python (and presumably ruby) writer can generate NaN > ---------------------------------------------------- > > Key: SOLR-449 > URL: https://issues.apache.org/jira/browse/SOLR-449 > Project: Solr > Issue Type: Bug > Affects Versions: 1.3 > Reporter: Mike Klaas > Assignee: Mike Klaas > Priority: Trivial > Attachments: nan.patch > > > The JSON response writer can omit "NaN" as float literal; this is fine for > JSON but breaks eval() in python (not sure if this is a problem in ruby). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.