-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Allow date math rounding to round up and down #90605
Copy link
Copy link
Open
Labels
:Core/Infra/CoreCore issues without another labelCore issues without another label:Search Foundations/SearchCatch all for Search FoundationsCatch all for Search Foundations>enhancementTeam:Core/InfraMeta label for core/infra teamMeta label for core/infra teamTeam:Search FoundationsMeta label for the Search Foundations team in ElasticsearchMeta label for the Search Foundations team in Elasticsearch
Description
Description
at the moment rounding for date maths always rounds "down" the date part, but round up the time part.
For example for 2022 it would round down to 2022-01-01T23:59:59.
This issue is to consider allowing to round down and up separately.
so for round down 2022 to - 2022-01-01T00:00:00
and round up 2022 to - 2022-12-31T23:59:59
This will allow the following search query:
query:
range:
date:
gte: 1500 #1500-01-01T00:00:00
lte: 1500 #1500-12-31T23:59:59
to be interpreted as covering all year.
the same for:
query:
match:
date:
query: "1500"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
:Core/Infra/CoreCore issues without another labelCore issues without another label:Search Foundations/SearchCatch all for Search FoundationsCatch all for Search Foundations>enhancementTeam:Core/InfraMeta label for core/infra teamMeta label for core/infra teamTeam:Search FoundationsMeta label for the Search Foundations team in ElasticsearchMeta label for the Search Foundations team in Elasticsearch
Type
Fields
Give feedbackNo fields configured for issues without a type.