DateMath from DateTime.MinValue


(Anna) #1

I'm trying to search for a date that is greater than DateTime.MinValue, but elastic throws search_phase_execution_exception. When I create var d = DateMath.Anchored(DateTime.MinValue) , d.Self = null and d.ToString() returns String.Empty. I do not observe this behavior with other dates, f.e. with DateTime.MaxValue.

 "range": {
                  "eventDateUtc": {
                    "gte": "0001-01-01T00:00:00"
                  }
                }

How can I make this filter using Nest? Elasticsearch can search dates that are greater than DateTime.MinValue.

I am using Nest 6.0.0 and Elastic 6.2.0

Why isValid is defined in this way?


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.