Esempio n. 1
0
        private void VisitLessThanOrEqual(BinaryExpression expression)
        {
            if (IsMemberAccessForQuerySource(expression.Left) == false && IsMemberAccessForQuerySource(expression.Right))
            {
                VisitGreaterThan(Expression.GreaterThan(expression.Right, expression.Left));
                return;
            }
            var memberInfo = GetMember(expression.Left);
            var value      = GetValueFromExpression(expression.Right, GetMemberType(memberInfo));

            luceneQuery.WhereLessThanOrEqual(
                GetFieldNameForRangeQuery(memberInfo, value),
                value);
        }
Esempio n. 2
0
 /// <inheritdoc />
 public IFilterFactory <T> LessThanOrEqual(string fieldName, object value)
 {
     _documentQuery.WhereLessThanOrEqual(fieldName, value);
     return(this);
 }