Hi,
I am using Elasticsearch version 19.4. I am using date histogram facet to
get the data based on week, day, month, year,hour and quarter. Is it
possible get the Zero count data in date histogram facet? I have shown here
a response for day,
"facets" : {
"createddaterange" : {
"_type" : "date_histogram",
"entries" : [ {
"time" : 1379203200000,
"count" : 15,
"min" : 1.3792356E12,
"max" : 1.3792356E12,
"total" : 2.0688534E13,
"total_count" : 15,
"mean" : 1.3792356E12
}, {
"time" : 1379289600000,
"count" : 15,
"min" : 1.379322E12,
"max" : 1.379322E12,
"total" : 2.068983E13,
"total_count" : 15,
"mean" : 1.379322E12
} ]
}
}
Could it be possible to get the count for the day without any data as 0
which would be like,
"facets" : {
"createddaterange" : {
"_type" : "date_histogram",
"entries" : [ {
"time" : 1379203200000,
"count" : 15,
"min" : 1.3792356E12,
"max" : 1.3792356E12,
"total" : 2.0688534E13,
"total_count" : 15,
"mean" : 1.3792356E12
}, {
"time" : 1379289600000,
"count" : 0,
"min" : 0,
"max" : 0,
"total" : 0,
"total_count" : 0,
"mean" : 0
} ]
}
}
Cheers,
George
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.