`indent preformatted text by 4 spaces`
Very new to painless scripting and have the simplest of scripted fields which is not working. I am trying to extract a pattern from doc["message"] field but it fails.
So I was looking at the value returned by doc["message"].value and its not same
as the actual value in the field.
I am getting value returned as "0000" highlighted in yellow (image below) where as the actual value can be seen along with it. (screenshot of preview results).
What am I missing here . I am sure its something very basic.