if (version.getVersion() < IndexFormatVersion.V3.getVersion()) {
throw new InvalidQueryException("Length operator is only " +
"available with index version >= 3. Please re-index " +
"repository and execute query again.");
}
PropertyValueImpl pv = (PropertyValueImpl) node.getPropertyValue();
String propName = npResolver.getJCRName(pv.getPropertyQName());
if (data instanceof ComparisonImpl) {
ComparisonImpl comp = (ComparisonImpl) data;
int operator = comp.getOperator();
Value v = (Value) ((StaticOperandImpl) comp.getOperand2()).accept(this, data);
String namedLength = FieldNames.createNamedLength(propName, v.getLong());