Are Groovy methods available in Painless

HI

I'm trying to use Groovy string methods, such as replaceAll(); in painless, but keep getting compile errors.

Heres my script:

String a = doc[Industry.keyword].value;
String t = a.replaceAll(","," ");
return t

I'm trying to remove all commas from the field. Are all groovy string methods supported for painless?

Painless mainly exposes core Java APIs. You can read the full API reference here.