Custom Query Variable on Elasticsearch Datasource

Hi there community, still eager to solve this one…
Any suggestions ?