示例#1
0
        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);
        }
示例#2
0
 /// <inheritdoc />
 public IFilterFactory <T> GreaterThan(string fieldName, object value)
 {
     _documentQuery.WhereGreaterThan(fieldName, value);
     return(this);
 }