Is it possible to run dynamic sql query in elastic search

Hi @Christian_Dahlqvist.

Thanks

my use is below :-

please check It and please try to help.

Thanks
HadoopHelp