public QueryAction explain ( String sql ) throws SqlParseException , SQLFeatureNotSupportedException { return ESActionFactory . create ( client , sql ) ; }
Prepare action And transform sql into ES ActionRequest