示例#1
0
 public SearchRequest DateFilter(string fieldName, OperatorType op, string timezone, string period, string crop)
 {
     _request.Conditions.Filter = SearchFilter.CreateDate(fieldName, timezone, OperatorTypeMap[op], period == null ? SearchValue.Null : SearchValue.CreatePeriod(period, crop));
     return(_request);
 }
示例#2
0
 public SearchRequest DateFilter(string fieldName, OperatorType op, string timezone, string date)
 {
     _request.Conditions.Filter = SearchFilter.CreateDate(fieldName, timezone, OperatorTypeMap[op], date == null ? SearchValue.Null : SearchValue.CreateDate(date));
     return(_request);
 }