Skip to content

Fail to serialize TimeSpan.FromHours(25) #2170

@emmekappa

Description

@emmekappa

NEST/Elasticsearch.Net version: 2.4.1

Elasticsearch version: 2.3.1

Description of the problem including expected versus actual behavior:

"unit [.] not supported for date math [-1.04d]"}}

Steps to reproduce:
Querying

.DateRange(d => d.Field(f => f.RefreshTimestamp).LessThan(DateMath.Now.Subtract(TimeSpan.FromHours(25))));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions