Gladson Regan Dsouza
11/05/2024, 10:45 AM{
"name": "A",
"fields": [
{
"name": "title",
"type": "string"
},
{
"name": "b_id",
"type": "string",
"reference": "B.id"
},
{
"name": "location",
"type": "geopoint"
}
]
}
Sample Document:
{
"id": "a.1",
"title": "1st Document",
"b_id": "b.1",
"location": [
52.47288,
-1.899156
]
}
Collection B
{
"name": "B",
"fields": [
{
"name": "name",
"type": "string"
},
{
"name": "geoLat",
"type": "geopoint"
}
]
}
Sample Document
{
"geoLat": [
52.47288,
-1.899156
],
"id": "b.1",
"name": "1st Document in B"
}
When i try to query collection A with sort_by as
location(52.5191058, -1.8820982):asc
The result has
"geo_distance_meters": {
"location": 5266
}
When i try to use sort_by using geoLat from collection B in gives me a different distance even though both location values are same
$B(geoLat(52.5191058, -1.8820982):asc)
Result:
"geo_distance_meters": {
"geoLat": 2147483647
}
Kishore Nallan
11/05/2024, 10:47 AM28.0.rc16
Gladson Regan Dsouza
11/05/2024, 10:47 AMGladson Regan Dsouza
11/05/2024, 10:54 AM28.0.rc16
, when can we expect this to be released?Kishore Nallan
11/05/2024, 10:57 AMGladson Regan Dsouza
11/05/2024, 10:59 AM