protected override void VisitWhereBetween(WhereBetweenExpression expression) { this.whereClause.AppendFormat("(doc[{0}]>{1}&&doc[{0}]<{2})", MakeValue(expression.FieldName), MakeValue(expression.Start), MakeValue(expression.End)); this.viewNameBuilder.AppendFormat("{1}_LT_{0}_GT_{2}", expression.FieldName, AsViewNameString(expression.Start), AsViewNameString(expression.End)); }
protected abstract void VisitWhereBetween(WhereBetweenExpression expression);
public IContentQuery <T> WhereBetween(string fieldName, object start, object end) { var expression = new WhereBetweenExpression(this.Expression, fieldName, start, end); return(this.Create(expression)); }