Please help in understanding this query?

query from kibana_Sample_data_ecommerce index

anyone having bit of the spare time then please help in understanding below query, i just want to see the product.price aggregated on day_of_week basis then why customer_date_of_birth and all is coming??

{
"aggs": {
"2": {
"terms": {
"field": "day_of_week",
"size": 7,
"order": {
"_count": "desc"
}
}
}
},
"size": 0,
"_source": {
"excludes":
},
"stored_fields": [
"*"
],
"script_fields": {},
"docvalue_fields": [
{
"field": "customer_birth_date",
"format": "date_time"
},
{
"field": "order_date",
"format": "date_time"
},
{
"field": "products.created_on",
"format": "date_time"
}
],
"query": {
"bool": {
"must": [
{
"match_all": {}
},
{
"match_all": {}
},
{
"range": {
"order_date": {
"gte": 1545242213947,
"lte": 1547435920614,
"format": "epoch_millis"
}
}
}
],
"filter": ,
"should": ,
"must_not":
}
}
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.