Which expression to get the elasticsearch client in mvel script

213 views Asked by At

I try to access to an instance of "org.elasticsearch.client.Client" in a mvel script into elasticsearch. I try to call directly "client", and i have this error :

[Error: unresolvable property or identifier: client]

Apparently is not the good way but i don't see anywhere the good way. But this client exist during the execution of the mvel script, so where can i get it?

1

There are 1 answers

3
javanna On BEST ANSWER

The client object is not available in the context of script execution.