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;
DynamicOperand leftSide = comparison.getOperand1();
if (leftSide instanceof NodePath) {
// This is a constraint on the path of a node ...
StaticOperand rightSide = comparison.getOperand2();
String path = stringValue(rightSide, context);