Convert string field in number using painless script in existing index kibana


(kanchan) #1

Hi Team,I have one index in which I have one string field that I want to convert in int type using painless script in kibana tool.

How I can do it.Please let me know.


(Thomas Neirynck) #2

hi @kanchan,

from the painless documentation, https://www.elastic.co/guide/en/elasticsearch/painless/6.x/painless-api-reference.html#painless-api-reference-Integer, it seems you can use Integer.parseInt(...).


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.