ChildNode childNode = (ChildNode)constraint;
String path = childNode.getParentPath();
calculator.addIndex(CHILDREN_BY_PATH_INDEX_NAME, null, null, singletonList(constraint), 10, 100L, -1.0f,
PATH_PARAMETER, path);
} else if (constraint instanceof DescendantNode) {
DescendantNode descendantNode = (DescendantNode)constraint;
String path = descendantNode.getAncestorPath();
calculator.addIndex(DESCENDANTS_BY_PATH_INDEX_NAME, null, null, singletonList(constraint), 1000, 10000L,
-1.0f, PATH_PARAMETER, path);
} else if (constraint instanceof Comparison) {
Comparison comparison = (Comparison)constraint;
if (comparison.operator() != Operator.EQUAL_TO) return;