Hi, I am having trouble splitting a string using painless to create a new field. I have a string like:
doc['path.keyword'].value = 'N:/divtaxbacktest/Comp/divbacktest/SMEA.L.csv';
And I would like to extract SMEA.L, so I am trying to first split the string and use substring as such:
String parts = ///.split(doc['path'].value);
return parts.substring( 0, -4 );
But it is not working. Could someone please help?