Home > Back-end > Elasticsearch: date_histogram interval
Elasticsearch: date_histogram interval
Time:11-19
Companies use elasticsearch recently some cached data access, now there is a demand to get 2 hours specified data, elasticsearch date_histogram interval of the field is a specified interval of time within 2 hours specified data aggregation, such as
2 hours per 3 minutes in the data for a bucket, and the results of the first barrel and the time is right, the end of the barrel of the time is right, But I change the time to 4 minutes, the first barrel will move forward for a few minutes of time, end time also moved forward for a few minutes, ever encountered bosses, solving!!!!!!!!!!
CodePudding user response:
The formula for computing es barrels polymerization bucket_key bucket_key=math.h floor ((value - offset)/interval) * interval + offset End time forward migration may be less time there is no data inside,
CodePudding user response:
Missing this time without the data, forced return empty barrels, also should have a bucket,
CodePudding user response:
What ah, the value represents the offset that I to know