I'm porting reindex's tests from groovy to painless. Yay. One thing I found is that a statement like
if (ctx._source.bar != 1) {ctx._source.foo = 1}
doesn't compile. It needs to be
if (ctx._source.bar != 1) {ctx._source.foo = 1;}
with the semicolon between the 1 and the }.
Is it worth making that work?
I'm porting reindex's tests from groovy to painless. Yay. One thing I found is that a statement like
doesn't compile. It needs to be
with the semicolon between the
1and the}.Is it worth making that work?