I have a field in elasticsearch that is very lengthy. So while visualizing that field I am getting the whole value in a straight line which is looking awkward. So I want to split that line into two lines(i.e; separated by \n in the middle).
So how would I achieve that using elasticsearch to be able to visualize it better in Kibana.
In the scripted fields I can see that it works only for numeric values, but I have a String field. If so we can do that, will you be kind in helping me how to do that?
Before 4.0, you can only use scripts for numerical values indeed. But from 5.0 on, you can write scripts for Strings. You would select 'Painless' as your language. And then it would look something like:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.