How do I alter queries in Elasticsearch Connector?

I need to alter Elasticsearch query before executing it to include functions, but I can not find any hooks to do that.