Is there any way to do scripted field to return a string value? Currently kibana documentations says only number scripted fields are allowed.
example: I am having field A = 1
and i want my required field B = "Foo 1"
.
As of Kibana4, it doesn't support non-numeric fields. If you require non-numeric scripted field, you can still you elastic search scripted field instead kibana scripted field.
But the downside is you have to reindex your ES.