public void testPropertyIsLessThanParse() throws Exception { FilterMockData.propertyIsLessThan(document, document); PropertyIsLessThan equalTo = (PropertyIsLessThan) parse(); assertNotNull(equalTo); assertNotNull(equalTo.getExpression1()); assertNotNull(equalTo.getExpression2()); }
@Override public Object visit(PropertyIsLessThan filter, Object extraData) { Expression[] expr = binaryFilterVisitorNormalizer(filter.getExpression1(), filter.getExpression2()); checkExpressionIsProperty(filter.getExpression1()); StringWriter output = asStringWriter(extraData); ExpressionToSolr visitor = new ExpressionToSolr(); PropertyName propertyName = (PropertyName) expr[0]; propertyName.accept(visitor, output); output.append(":{* TO "); expr[1].accept(visitor, output); output.append("}"); return output; }