Batch ops for elasticsearch and rewrites for string processing