spec.setAscending(false);
return data;
}
public Object visit(ASTContainsExpression node, Object data) {
NAryQueryNode parent = (NAryQueryNode) data;
try {
Path relPath = null;
if (node.getPropertyName() != null) {
Path.PathBuilder builder = new Path.PathBuilder();
builder.addLast(node.getPropertyName());
relPath = builder.getPath();
}
parent.addOperand(new TextsearchQueryNode(parent, node.getQuery(), relPath, true));
} catch (MalformedPathException e) {
// path is always valid
}
return parent;
}