private void VisitGreaterThan(BinaryExpression expression) { if (IsMemberAccessForQuerySource(expression.Left) == false && IsMemberAccessForQuerySource(expression.Right)) { VisitLessThanOrEqual(Expression.LessThanOrEqual(expression.Right, expression.Left)); return; } var memberInfo = GetMember(expression.Left); var value = GetValueFromExpression(expression.Right, GetMemberType(memberInfo)); luceneQuery.WhereGreaterThan( GetFieldNameForRangeQuery(memberInfo, value), value); }
/// <inheritdoc /> public IFilterFactory <T> GreaterThan(string fieldName, object value) { _documentQuery.WhereGreaterThan(fieldName, value); return(this); }