DynamicOperand left = comparison.getOperand1();
if (left instanceof PropertyValue) {
PropertyValue propValue = (PropertyValue)left;
if ("jcr:path".equals(propValue.getPropertyName())) {
// Rewrite this constraint as a PATH criteria ...
NodePath path = new NodePath(propValue.selectorName());
return new Comparison(path, comparison.operator(), comparison.getOperand2());
}
if ("jcr:score".equals(propValue.getPropertyName())) {
// Rewrite this constraint as a SCORE criteria ...
FullTextSearchScore score = new FullTextSearchScore(propValue.selectorName());