How to validate painless scripts?


(Sunil Purushothaman) #1

We use many ScriptQuery and ScriptField in our project, and provide inline scripts for them in painless language.

My question is, how can we validate these painless scripts? In other words, how to make sure that they will compile ?

The approach we use today is to test them out locally through kibana. However, this is manual, error prone and not scalable. I am looking for a programmatic way to validate painless scripts.
Is the compile elasticsearch uses under the hood open source ? Or is there some other way ?

Elasticsearch version 5.4


(Val Crettaz) #2

There's an open issue to provide a Painless execution endpoint which could very well do the compilation/simulation job you're expecting. However, it's still under discussion and there's no guarantee that it will ever be implemented.

You can chime in and give it a thumbs up to show your interest, though.


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.