Skip to content

Remove TimeOutputFormat from the datasource #65

@fmassot

Description

@fmassot

Queries that retrieve documents are all sorted by the timestamp field. At request time, we enforce the output format of the sorted value in nanosecond with b.Sort(es.SortOrderDesc, defaultTimeField, "epoch_nanos_int").

The ES response contains a sort field in each hit. This sort field is an array of values with a size > 0, and we know that the first element of the array is the timestamp value in nanosecond.

So we don't need to know the TimeOutputFormat, we have already the info in the hit, we just need to use it.

Metadata

Metadata

Assignees

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