I'd like to store daily statistics of sales.
By daily, I mean day of year
.
Conceptually the data would look like the following.
{
name: bmw,
daily_statics : {
1: { sold_count: 5},
2: { sold_count: 3},
...
365: {sold_count: 2}
}
I'm trying to create a mapping in elasticsearch-dsl-py
and having trouble.
I guess it would be similarly troublesome to create a mapping for this document?
- edit
I'd like to view seasonal trend of data. so day-of-year 1 and day-of-year 365 is actually pretty close input point. Besides, I only need one year worth of data
question from:https://stackoverflow.com/questions/65936853/elasticsearch-how-to-store-data-per-date