5556575859606162636465
if (!queryTree.isLeaf()) { List<QueryNode> children = queryTree.getChildren(); if (children == null || children.size() == 0) { return new MatchNoDocsQueryNode(); } } return queryTree;
4243444546474849505152
queryTree = super.process(queryTree); if (queryTree instanceof DeletedQueryNode && !(queryTree instanceof MatchNoDocsQueryNode)) { return new MatchNoDocsQueryNode(); } return queryTree;