Scripted fields and type conversion with Kibana4B3

I just started playing with scripted fields in Kibana4 Beta3.

I'm looking for guidance on how to do type conversions with the new
scripted fields feature. Specifically, I have some ES fields that I've
typed as "ip" to (obviously) store IPv4 addresses. I'd line to convert
these to strings when creating my scripted field. Since 1) I didn't know
anything about Groovy until yesterday, and 2) Groovy doesn't appear to have
a native IP type, I'm at a loss as to how to approach this. Anybody know?

--
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/6f6ff411-95f9-4003-bc9a-d355f3a3165c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Well, I figured out that I can use doc['field_name'].value.toString(), but
that returns the integer version of the IP address as a string rather than
the dotted decimal version. I see some discussion of this problem in the ES
Github issues, but I can't tell if there's a solution.

On Wednesday, December 17, 2014 7:56:31 PM UTC-7, Jay Swan wrote:

I just started playing with scripted fields in Kibana4 Beta3.

I'm looking for guidance on how to do type conversions with the new
scripted fields feature. Specifically, I have some ES fields that I've
typed as "ip" to (obviously) store IPv4 addresses. I'd line to convert
these to strings when creating my scripted field. Since 1) I didn't know
anything about Groovy until yesterday, and 2) Groovy doesn't appear to have
a native IP type, I'm at a loss as to how to approach this. Anybody know?

--
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/3147a62a-9efb-4a17-af97-4b6c02acc082%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.