Hi Nathan,
thanks a lot for your quick response. In my "inspect" I have this request:
{
"aggs": {
"filter_agg": {
"filter": {
"geo_bounding_box": {
"ignore_unmapped": true,
"addresses.location": {
"top_left": {
"lat": 90,
"lon": -180
},
"bottom_right": {
"lat": -90,
"lon": 180
}
}
}
},
"aggs": {
"2": {
"geohash_grid": {
"field": "addresses.location",
"precision": 2
},
"aggs": {
"3": {
"geo_centroid": {
"field": "addresses.location"
}
}
}
}
}
}
},
"size": 0,
"_source": {
"excludes": []
},
"stored_fields": [
"*"
],
"script_fields": {},
"docvalue_fields": [
{
"field": "created_at",
"format": "date_time"
},
{
"field": "scraped_at",
"format": "date_time"
},
{
"field": "updated_at",
"format": "date_time"
}
],
"query": {
"bool": {
"must": [],
"filter": [
{
"match_all": {}
},
{
"range": {
"scraped_at": {
"format": "strict_date_optional_time",
"gte": "2019-11-22T23:00:00.000Z",
"lte": "2019-11-23T22:59:59.999Z"
}
}
}
],
"should": [],
"must_not": []
}
}
}
and the response is
{
"took": 1,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": 2,
"max_score": null,
"hits": []
},
"aggregations": {
"filter_agg": {
"2": {
"buckets": []
},
"doc_count": 0
}
},
"status": 200
}
It makes me suppose that the error could be in the way I save data, but I simply save lat and lon in location, exactly like I show in the previous message. How could I investigate deeply?