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); }
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); }