sb.append(root.toQueryString(escapeSyntaxParser)).append(" : ");
}
if (child instanceof WildcardNodeQueryNode) {
sb.append("*");
} else {
sb.append(child.toQueryString(escapeSyntaxParser));
}
// in case is root or the parent is a group node avoid parenthesis
if ((this.getParent() != null && this.getParent() instanceof GroupQueryNode) || this.isRoot()) {
return sb.toString();