Hi
I'm trying to set up a date histogram. When I look into the request it forms, I get this:
{
"aggs": {
"2": {
"date_histogram": {
"field": "aanvaard of a-posteriori op",
"interval": "1y",
"time_zone": "Europe/Berlin",
"min_doc_count": 1
}
}
},
"size": 0,
"_source": {
"excludes":
},
"stored_fields": [
"*"
],
"script_fields": {},
"docvalue_fields": [
"@timestamp",
"aanvaard of a-posteriori op",
"certificate.COForm.COFormContent.Signatory.SignatureDate"
],
"query": {
"bool": {
"must": [
{
"range": {
"@timestamp": {
"gte": 1533538243247,
"lte": 1533539143247,
"format": "epoch_millis"
}
}
}
],
"filter": [
{
"match_all": {}
}
],
"should": ,
"must_not":
}
}
}
But I should not have the must/range in there - how can I get rid of it?
I just want to take all my docs and put them into the buckets. Timestamp is the date I added the docs - which was last friday.