You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to sort the data using geo distance but the field is nested so I was trying provide a nested path but it seems there is no option available for that or it's clearly not visible/well documented how to do that.
What solution would you like?
A simple and easy way to add a nested path as we have that Sort Field
What alternatives have you considered?
I'd have to do the sorting in java unfortunately
This is the query that I have to build using java :
`
GET /test/_search
{
"sort" : [
{
"_geo_distance" : {
"event_date.location.geo_coordinates": {
"lat": 48.5073,
"lon": 12.1601
},
//THIS IS MISSING
"nested_path": "event_date",
FYI, we have recently merged a beginning of a code generator that aims to resolve this entire class of problems (#366). There are a few things you can do to help:
Is your feature request related to a problem?
I am trying to sort the data using geo distance but the field is nested so I was trying provide a nested path but it seems there is no option available for that or it's clearly not visible/well documented how to do that.
What solution would you like?
A simple and easy way to add a nested path as we have that Sort Field
What alternatives have you considered?
I'd have to do the sorting in java unfortunately
This is the query that I have to build using java :
`
GET /test/_search
{
"sort" : [
{
"_geo_distance" : {
"event_date.location.geo_coordinates": {
"lat": 48.5073,
"lon": 12.1601
},
//THIS IS MISSING
"nested_path": "event_date",
"query": {
"match_all": {
}
}
}
`
The text was updated successfully, but these errors were encountered: