String[] indices = indices(analysis);
if (indices.length > 0 && !analysis.whereClause().noMatch()) {
if (!analysis.whereClause().hasQuery() && analysis.table().isPartitioned()) {
for (String index : indices) {
plan.add(new ESDeleteIndexNode(index, true));
}
} else {
// TODO: if we allow queries like 'partitionColumn=X or column=Y' which is currently
// forbidden through analysis, we must issue deleteByQuery request in addition