Script field coercion Out of range

I have two ES installations with identical configuration. The following
script_fields query:

curl -XPOST localhost:9200/ -d '
{"script_fields": {"foo": {"script": "rint("32768")"}}}
'

produces the following error on one node and not the other.

{

  • timed_out: false
  • _shards: {
    • total: 4
    • successful: 3
    • failed: 1
    • failures: [
      • {
        • status: 500
        • reason: CompileException[[Error: Value out of range.
          Value:"32768" Radix:10] [Near : {... rint("32768") ....}] ^ [Line: 1,
          Column: 1]]; nested: NumberFormatException[Value out of range.
          Value:"32768" Radix:10];
          }
          ]
          }
  • hits: {
    • total: 1591475
    • max_score: 1
    • hits: [ ]
      }

}

The failing node is attempting to coerce to a short, but I cannot find any
reason for this behavior.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/a42e0adc-fa94-4159-822b-44464d3bf4f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Is it possible that you have different JDK versions? I tried this on 1.7u25
and it gave me the error, but not on 1.7u55.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/5e2ddba3-88f9-431b-9dc8-072eae7f5e39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.