request.source(new ExplainSourceBuilder().setQuery(query));
return this;
}
public ExplainRequestBuilder<JsonInput, JsonOutput> query(JsonInput query) {
request.source(new ExplainSourceBuilder().setQuery(new BytesArray(jsonToString(query))));
return this;
}